API ConnectAddon
From Vendetta Lua
ConnectAddon
Type | Name | Description |
---|---|---|
number | portid | portid of the the port |
number | itemid | itemid of the addon |
function | cb | function to call on completion (optional) |
Type | Name | Description |
---|---|---|
boolean | canconnect | returns true if the player is docked and has an active ship otherwise nil |
<source lang="lua"> -- put the addon 123 into port 2 while the player is docked to a station ConnectAddon(2, 123) -> true </source>