Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actiontoggleplaceobject.c
Go to the documentation of this file.
1
class
ActionTogglePlaceObject
:
ActionSingleUseBase
2
{
3
void
ActionTogglePlaceObject
()
4
{
5
m_Text
=
"#toggle_placing"
;
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
IsLocal
()
20
{
21
return
true
;
22
}
23
24
override
bool
IsInstant
()
25
{
26
return
true
;
27
}
28
29
override
bool
IsDeploymentAction
()
30
{
31
return
true
;
32
}
33
34
override
bool
RemoveForceTargetAfterUse
()
35
{
36
return
false
;
37
}
38
39
override
bool
CanBeUsedWithBrokenLegs
()
40
{
41
return
false
;
42
}
43
44
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
45
{
46
// not placeable if liquid is present; exception for barrels, for now
47
if
(!item.IsKindOf(
"Barrel_ColorBase"
) && item.IsLiquidPresent())
48
return
false
;
49
50
return
true
;
51
}
52
53
override
void
Start
(
ActionData
action_data)
54
{
55
super.Start(action_data);
56
57
action_data.m_Player.SetLocalProjectionPosition(action_data.m_Target.GetCursorHitPos());
58
action_data.m_Player.TogglePlacingLocal();
59
}
60
}
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
ActionSingleUseBase::ActionSingleUseBase
void ActionSingleUseBase()
Definition
actionsingleusebase.c:31
ActionTogglePlaceObject::IsInstant
override bool IsInstant()
Definition
actiontoggleplaceobject.c:24
ActionTogglePlaceObject::Start
override void Start(ActionData action_data)
Definition
actiontoggleplaceobject.c:53
ActionTogglePlaceObject::IsLocal
override bool IsLocal()
Definition
actiontoggleplaceobject.c:19
ActionTogglePlaceObject::CreateConditionComponents
override void CreateConditionComponents()
Definition
actiontoggleplaceobject.c:8
ActionTogglePlaceObject::CanBeUsedWithBrokenLegs
override bool CanBeUsedWithBrokenLegs()
Definition
actiontoggleplaceobject.c:39
ActionTogglePlaceObject::IsDeploymentAction
override bool IsDeploymentAction()
Definition
actiontoggleplaceobject.c:29
ActionTogglePlaceObject::RemoveForceTargetAfterUse
override bool RemoveForceTargetAfterUse()
Definition
actiontoggleplaceobject.c:34
ActionTogglePlaceObject::ActionTogglePlaceObject
void ActionTogglePlaceObject()
Definition
actiontoggleplaceobject.c:3
ActionTogglePlaceObject::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actiontoggleplaceobject.c:44
ActionTogglePlaceObject::HasTarget
override bool HasTarget()
Definition
actiontoggleplaceobject.c:14
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
actiontoggleplaceobject.c
Generated by
1.17.0