Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionlighttorchvideo.c
Go to the documentation of this file.
1
class
ActionLightTorchVideo
:
ActionBase
2
{
3
void
ActionLightTorchVideo
()
4
{
5
m_Text
=
"#switch_on"
;
6
}
7
8
override
void
CreateConditionComponents
()
9
{
10
m_ConditionItem
=
new
CCINonRuined
();
11
m_ConditionTarget
=
new
CCTNone
();
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().SwitchOn();
38
}
39
}
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::ClearActionJuncture
void ClearActionJuncture(ActionData action_data)
Definition
actionbase.c:1104
ActionBase::ActionBase
void ActionBase()
Definition
actionbase.c:88
ActionLightTorchVideo::ActionLightTorchVideo
void ActionLightTorchVideo()
Definition
actionlighttorchvideo.c:3
ActionLightTorchVideo::IsInstant
override bool IsInstant()
Definition
actionlighttorchvideo.c:22
ActionLightTorchVideo::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionlighttorchvideo.c:8
ActionLightTorchVideo::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionlighttorchvideo.c:14
ActionLightTorchVideo::HasTarget
override bool HasTarget()
Definition
actionlighttorchvideo.c:27
ActionLightTorchVideo::OnStartServer
override void OnStartServer(ActionData action_data)
Definition
actionlighttorchvideo.c:32
CCINonRuined
Definition
ccinonruined.c:2
CCTNone
Definition
cctnone.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
singleuse
actionlighttorchvideo.c
Generated by
1.17.0