DayZ 1.24
Loading...
Searching...
No Matches
ActionWorldCraftSwitch.c
Go to the documentation of this file.
2{
4 {
5 m_Text = "#next_recipe";
6 }
7
13
14 override bool IsLocal()
15 {
16 return true;
17 }
18
19 override bool IsInstant()
20 {
21 return true;
22 }
23
25 {
26 return false;
27 }
28
29 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
30 {
31 if (player.GetCraftingManager().GetRecipesCount() > 1)
32 return true;
33 return false;
34 }
35
36 override void Start(ActionData action_data) //Setup on start of action
37 {
38 super.Start(action_data);
39 action_data.m_Player.GetCraftingManager().SetNextRecipe();
40 }
41
42};
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override void Start(ActionData action_data)
override bool RemoveForceTargetAfterUse()
const float DEFAULT