Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
actionextinquishtorchvideo.c
Go to the documentation of this file.
1class ActionExtinquishTorchVideo : ActionBase
2{
3 void ActionExtinquishTorchVideo()
4 {
5 m_Text = "#switch_off";
6 }
7
8 override void CreateConditionComponents()
9 {
12 }
13
14 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
15 {
16 if (item.GetCompEM() && item.GetCompEM().IsSwitchedOn())
17 return true;
18
19 return false;
20 }
21
22 override bool IsInstant()
23 {
24 return true;
25 }
26
27 override bool HasTarget()
28 {
29 return false;
30 }
31
32 override void OnStartServer( ActionData action_data )
33 {
34 ClearActionJuncture(action_data);
35 ItemBase item = action_data.m_MainItem;
36
37 item.GetCompEM().SwitchOff();
38 }
39}
ActionBase ActionData
Definition actionbase.c:30
void ClearActionJuncture(ActionData action_data)
bool HasTarget()
Definition actionbase.c:250
void ActionBase()
Definition actionbase.c:88
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
bool IsInstant()
Definition actionbase.c:268
void CreateConditionComponents()
Definition actionbase.c:236
ref CCTBase m_ConditionTarget
Definition actionbase.c:71