API GetStationTurretInfo

From Vendetta Lua
Revision as of 01:45, 23 August 2013 by Abortretryfail (talk | contribs)
Jump to navigationJump to search

GetStationTurretInfo

Definition: GetStationTurretInfo(int turretid) -> {...}
Description:
get information about a stations or ships turrets. Return table has different members for occupied vs unoccupied turrets.
Arguments:
turretid' id of a turret
Returns when unoccupied:
ammo Remaining ammo. -1 for unlimited fire weapons
armorpercent armor level
itemid
itemtype
nodeid
objectid
Additional data when occupied:
controller charid of the player who is controlling the turret.
_controller No idea.