Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionworldcraftswitch.c
Go to the documentation of this file.
1
2
class
ActionWorldCraftSwitch
:
ActionSingleUseBase
3
{
4
void
ActionWorldCraftSwitch
()
5
{
6
m_Text
=
"#next_recipe"
;
7
}
8
9
override
void
CreateConditionComponents
()
10
{
11
m_ConditionItem
=
new
CCINone
;
12
m_ConditionTarget
=
new
CCTObject
(
UAMaxDistances
.
DEFAULT
);
13
}
14
15
override
bool
IsLocal
()
16
{
17
return
true
;
18
}
19
20
override
bool
IsInstant
()
21
{
22
return
true
;
23
}
24
25
override
bool
RemoveForceTargetAfterUse
()
26
{
27
return
false
;
28
}
29
30
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
31
{
32
if
( player.GetCraftingManager().GetRecipesCount() > 1 )
33
{
34
return
true
;
35
}
36
return
false
;
37
}
38
39
override
void
Start
(
ActionData
action_data )
//Setup on start of action
40
{
41
super.Start( action_data );
42
action_data.m_Player.GetCraftingManager().SetNextRecipe();
43
}
44
45
};
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
ActionWorldCraftSwitch::IsInstant
override bool IsInstant()
Definition
actionworldcraftswitch.c:20
ActionWorldCraftSwitch::Start
override void Start(ActionData action_data)
Definition
actionworldcraftswitch.c:39
ActionWorldCraftSwitch::IsLocal
override bool IsLocal()
Definition
actionworldcraftswitch.c:15
ActionWorldCraftSwitch::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionworldcraftswitch.c:9
ActionWorldCraftSwitch::RemoveForceTargetAfterUse
override bool RemoveForceTargetAfterUse()
Definition
actionworldcraftswitch.c:25
ActionWorldCraftSwitch::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionworldcraftswitch.c:30
ActionWorldCraftSwitch::ActionWorldCraftSwitch
void ActionWorldCraftSwitch()
Definition
actionworldcraftswitch.c:4
CCINone
Definition
ccinone.c:2
CCTObject
Definition
cctobject.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
UAMaxDistances
Definition
actionconstants.c:110
UAMaxDistances::DEFAULT
const float DEFAULT
Definition
actionconstants.c:112
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
singleuse
actionworldcraftswitch.c
Generated by
1.17.0