API GetStationTurretInfo: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=== GetStationTurretInfo === | === GetStationTurretInfo === | ||
'''Definition:''' | '''Definition:''' | ||
GetStationTurretInfo(int turretid) -> { | GetStationTurretInfo(int turretid) -> {...} | ||
<br> | <br> | ||
'''Description:'''<br> | '''Description:'''<br> | ||
get information about a stations or ships turrets | get information about a stations or ships turrets. Return table has different members for occupied vs unoccupied turrets. | ||
<br> | <br> | ||
'''Arguments:'''<br> | '''Arguments:'''<br> | ||
''turretid''' id of a turret | ''turretid''' id of a turret | ||
<br> | <br> | ||
'''Returns:'''<br> | '''Returns when unoccupied:'''<br> | ||
''ammo'' Remaining ammo. -1 for unlimited fire weapons<br> | |||
''armorpercent'' armor level<br> | |||
''itemid''<br> | |||
''itemtype''<br> | |||
''nodeid''<br> | |||
''objectid''<br> | ''objectid''<br> | ||
'' | '''Additional data when occupied:'''<br> | ||
'' | ''controller'' charid of the player who is controlling the turret.<br> | ||
'' | ''_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?