API GetStationTurretInfo

From Vendetta Lua
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 nodeid of the player who is controlling the turret?