Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionzoomin.c
Go to the documentation of this file.
2{
3 void ActionZoomIn()
4 {
5 m_Text = "#zoom_in";
6 }
7
8 override void CreateConditionComponents()
9 {
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 super.OnEndServer(action_data);
32
33 ItemOptics optic;
34 if( Class.CastTo(optic, action_data.m_MainItem) )
35 {
36 optic.EnterOptics();
37 }
38 }
39};
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
Super root of all classes in Enforce script.
Definition enscript.c:11