21 {
23
24 if ( target_entity.GetCompEM().CanWork() )
25 {
26 target_entity.GetCompEM().
SwitchOn();
27
29 }
30 else
31 {
33 }
34 }
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
proto native void SwitchOn(bool onOff)
Some inventoryItem devices can be switched on/off (radios, transmitters)