8 override void CreateConditionComponents()
14 override bool HasTarget()
19 override bool HasProneException()
52 return item.HasEnergyManager() && item.GetCompEM().CanSwitchOn() && item.GetCompEM().CanWork();
55 override void OnExecuteServer(
ActionData action_data)
57 if ( action_data.m_MainItem.HasEnergyManager() )
59 if (action_data.m_MainItem.GetCompEM().CanWork())
61 action_data.m_MainItem.GetCompEM().SwitchOn();
66 override void OnStartClient(
ActionData action_data)
68 if (action_data.m_MainItem && action_data.m_MainItem.IsInherited(
Roadflare))
75 override void OnStartServer(
ActionData action_data )
77 if (action_data.m_MainItem && action_data.m_MainItem.IsInherited(
Roadflare))