Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionfoldmap.c
Go to the documentation of this file.
1 
2 //dummy action. Unfold 'looped action' canceled from elswhere
4 {
5  void ActionFoldMap()
6  {
7  m_Text = "#fold_map";
8  }
9 
10  override bool IsInstant()
11  {
12  return true;
13  }
14 
15  override void CreateConditionComponents()
16  {
19  }
20 
21  override bool HasTarget()
22  {
23  return false;
24  }
25 
26  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
27  {
28  if (player.m_hac && player.IsMapOpen())
29  {
30  return true;
31  }
32  return false;
33  }
34 
35  override int GetActionCategory()
36  {
37  return AC_SINGLE_USE;
38  }
39 };
ItemBase
Definition: inventoryitem.c:730
CCTNone
Definition: cctnone.c:1
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionFoldMap
Definition: actionfoldmap.c:3
AC_SINGLE_USE
const int AC_SINGLE_USE
Definition: _constants.c:2
ActionBase
void ActionBase()
Definition: actionbase.c:73
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
CCINonRuined
Definition: ccinonruined.c:1
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56