Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionzoomout.c
Go to the documentation of this file.
1
class
ActionZoomOut
:
ActionSingleUseBase
2
{
3
void
ActionZoomOut
()
4
{
5
m_Text
=
"#zoom_out"
;
6
}
7
8
override
void
CreateConditionComponents()
9
{
10
m_ConditionItem
=
new
CCINonRuined
;
11
m_ConditionTarget
=
new
CCTNone
;
12
}
13
14
override
bool
HasTarget()
15
{
16
return
false
;
17
}
18
19
override
bool
ActionCondition(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
20
{
21
ItemOptics
optic;
22
if
(
Class
.CastTo(optic, item) && optic.IsInOptics() )
23
{
24
return
true
;
25
}
26
return
false
;
27
}
28
29
override
void
OnEndServer(
ActionData
action_data )
30
{
31
ItemOptics
optic;
32
if
(
Class
.CastTo(optic, action_data.m_MainItem) )
33
{
34
optic.ExitOptics();
35
}
36
}
37
};
ItemBase
Definition:
inventoryitem.c:730
CCTNone
Definition:
cctnone.c:1
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
m_Text
protected string m_Text
Definition:
actionbase.c:49
ActionSingleUseBase
Definition:
actionsingleusebase.c:41
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
ItemOptics
Definition:
itemoptics.c:1
CCINonRuined
Definition:
ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
Class
Super root of all classes in Enforce script.
Definition:
enscript.c:10
ActionZoomOut
Definition:
actionzoomout.c:1
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
singleuse
actionzoomout.c
Generated by
1.8.17