Difference between revisions of "API GetActiveShipPortInfo"

From Vendetta Lua
Jump to: navigation, search
(split)
 
(No difference)

Latest revision as of 21:59, 25 January 2009

GetActiveShipPortInfo

Definition:
GetActiveShipPortInfo(int portid) -> table portinfo
Description:
returns information about the given port
Arguments:
portid portid
Returns:
portinfo table with port info
fields include:
type: int holding the type of port
name string describing port
position: vector with port position on ship
orientation: quaternion holding orientation of port

Example:

GetActiveShipPortInfo(1) -> {type=4 name="PowerCell" position=(0, 0, 0) orientation=(0.000 0.000 0.000 1.000)}

portinfo of a ragnaroks battery port