Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actionworldcraftswitch.c
Go to the documentation of this file.
1
3{
5 {
6 m_Text = "#next_recipe";
7 }
8
9 override void CreateConditionComponents()
10 {
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};
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
void Start()
Plays all elements this effects consists of.
Definition effect.c:157