Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
casingleuseturnonplugged.c
Go to the documentation of this file.
1
class
CASingleUseTurnOnPlugged
:
CASingleUse
2
{
3
override
int
Execute(
ActionData
action_data )
4
{
5
if
( !action_data.m_MainItem )
6
{
7
return
UA_ERROR
;
8
}
9
if
( !action_data.m_MainItem.GetCompEM().CanWork() )
10
{
11
return
UA_FINISHED
;
12
}
13
return
UA_FINISHED
;
14
}
15
};
UA_ERROR
const int UA_ERROR
Definition:
constants.c:455
CASingleUse
Definition:
casingleuse.c:1
UA_FINISHED
const int UA_FINISHED
Definition:
constants.c:436
ActionData
Definition:
actionbase.c:20
CASingleUseTurnOnPlugged
Definition:
casingleuseturnonplugged.c:1
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actioncomponents
casingleuseturnonplugged.c
Generated by
1.8.17