User Tools

Site Tools


modding:function:objchangeequipmentstatus

Discuss this page on this pages TalkPage

objChangeEquipmentStatus

Syntax (objChangeEquipmentStatus obj equipment command [duration] [options])
Arguments obj: The space object to change equipment status on
equipment: the equipment to alter status on
command: what to set the equipment status to
[duration]: Duration, in ticks, that the status is changed for
[options]: Currently limited to 'noMessage, which does not message the player about the status change.
Returns True if succesful, Nil otherwise
Category spaceObject functions
Description
Equipment Command
'Autopilot 'install
'remove
'GalacticMap 'install
'remove
FriendlyFireLock 'install
'remove
LRS none
SRS 'damage
'repair
SRSEnhancer 'install
'remove
SystemMap none
TargetingComputer 'install
'remove

Example

 (objChangeEquipmentStatus gPlayerShip 'TargetingComputer 'install) 

Installs a targeting program on the playership.

Return to Space Object functions list

Return to functions list

modding/function/objchangeequipmentstatus.txt · Last modified: 2017/02/03 20:57 by xephyr