Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionfoldobject.c
Go to the documentation of this file.
1
class
ActionFoldObject
:
ActionInteractBase
2
{
3
void
ActionFoldObject
()
4
{
5
m_SpecialtyWeight
= UASoftSkillsWeight.ROUGH_MEDIUM;
6
m_Text
=
"#fold"
;
7
}
8
9
override
typename
GetInputType
()
10
{
11
return
ContinuousInteractActionInput
;
12
}
13
14
override
bool
HasProgress
()
15
{
16
return
false
;
17
}
18
19
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
20
{
21
Object
targetObject = target.GetObject();
22
if
( targetObject.IsInherited(HescoBox) )
23
{
24
HescoBox hesco = HescoBox.Cast( targetObject );
25
26
if
( hesco.GetState() == HescoBox.UNFOLDED )
27
{
28
return
true
;
29
}
30
}
31
return
false
;
32
}
33
34
override
void
OnExecuteServer
(
ActionData
action_data )
35
{
36
Object
targetObject = action_data.m_Target.GetObject();
37
HescoBox hesco = HescoBox.Cast( targetObject );
38
if
( hesco.GetState() == HescoBox.UNFOLDED )
39
{
40
hesco.Fold();
41
}
42
}
43
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_SpecialtyWeight
float m_SpecialtyWeight
Definition
actionbase.c:83
ActionFoldObject::OnExecuteServer
override void OnExecuteServer(ActionData action_data)
Definition
actionfoldobject.c:34
ActionFoldObject::ActionFoldObject
void ActionFoldObject()
Definition
actionfoldobject.c:3
ActionFoldObject::HasProgress
override bool HasProgress()
Definition
actionfoldobject.c:14
ActionFoldObject::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionfoldobject.c:19
ActionFoldObject::GetInputType
override GetInputType()
Definition
actionfoldobject.c:9
ActionInteractBase::ActionInteractBase
void ActionInteractBase()
Definition
actioninteractbase.c:43
ContinuousInteractActionInput
Definition
actioninput.c:523
ItemBase
Definition
inventoryitem.c:742
Object
Definition
objecttyped.c:2
PlayerBase
Definition
playerbaseclient.c:2
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
interact
actionfoldobject.c
Generated by
1.17.0