API GetActiveShipPortIDOfItem
From Vendetta Lua
Jump to navigationJump to search
GetActiveShipPortIDOfItem
Definition:
GetActiveShipPortIDOfItem(int itemid) -> int portid
Description:
returns portid of the given addon in active ship
Arguments:
itemid itemid of an addon
Returns:
portid portid of port the addon is in or nil if addon is not on the ship or invalid
Example:
<source lang="lua">GetActiveShipPortIDOfItem(1234) -> 3</source>