API GetStationTurretInfo: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
No edit summary
 
Line 18: Line 18:
'''Additional data when occupied:'''<br>
'''Additional data when occupied:'''<br>
''controller'' charid of the player who is controlling the turret.<br>
''controller'' charid of the player who is controlling the turret.<br>
''_controller'' No idea.
''_controller'' nodeid of the player who is controlling the turret?
 


<br>
<br>

Latest revision as of 02:33, 23 August 2013

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?