Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actionworldcraftswitch.c
Go to the documentation of this file.
1
3{
5 {
6 m_Text = "#next_recipe";
7 }
8
14
15 override bool IsLocal()
16 {
17 return true;
18 }
19
20 override bool IsInstant()
21 {
22 return true;
23 }
24
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};
ActionBase ActionData
Definition actionbase.c:30
class ActionTargets ActionTarget
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
override void Start(ActionData action_data)
override void CreateConditionComponents()
override bool RemoveForceTargetAfterUse()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT