Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionworldcraftswitch.c
Go to the documentation of this file.
2 {
4  {
5  m_Text = "#next_recipe";
6  }
7 
8  override void CreateConditionComponents()
9  {
12  }
13 
14  override bool IsLocal()
15  {
16  return true;
17  }
18 
19  override bool IsInstant()
20  {
21  return true;
22  }
23 
24  override bool RemoveForceTargetAfterUse()
25  {
26  return false;
27  }
28 
29  override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item )
30  {
31  if ( player.GetCraftingManager().GetRecipesCount() > 1 )
32  {
33  return true;
34  }
35  return false;
36  }
37 
38  override void Start( ActionData action_data ) //Setup on start of action
39  {
40  super.Start( action_data );
41  action_data.m_Player.GetCraftingManager().SetNextRecipe();
42  }
43 
44 };
ItemBase
Definition: inventoryitem.c:730
CCINone
Definition: ccinone.c:1
CCTObject
Definition: cctobject.c:1
UAMaxDistances
Definition: actionconstants.c:104
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
m_Text
protected string m_Text
Definition: actionbase.c:49
ActionSingleUseBase
Definition: actionsingleusebase.c:41
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56
ActionWorldCraftSwitch
Definition: actionworldcraftswitch.c:1