DayZ 1.24
Loading...
Searching...
No Matches
ActionFoldMap.c
Go to the documentation of this file.
1
2//dummy action. Unfold 'looped action' canceled from elswhere
3class ActionFoldMap: ActionBase
4{
6 {
7 m_Text = "#fold_map";
8 }
9
10 override bool IsInstant()
11 {
12 return true;
13 }
14
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 return true;
30 return false;
31 }
32
33 override int GetActionCategory()
34 {
35 return AC_SINGLE_USE;
36 }
37};
const int AC_SINGLE_USE
Definition _constants.c:2
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 HasTarget()
override int GetActionCategory()
override void CreateConditionComponents()
override bool IsInstant()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionFoldMap()