DayZ 1.24
Loading...
Searching...
No Matches
ActionRepairShelter.c
Go to the documentation of this file.
1//used for shelters (non-proxy tent objects)
3{
13
19
20 override bool IsUsingProxies()
21 {
22 return false;
23 }
24
25 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
26 {
27 ShelterBase shelter = ShelterBase.Cast(target.GetObject());
28 if (!shelter)
29 return false;
30
31 if (player && shelter)
32 {
35 if (module_repairing.CanRepair(item, shelter))
36 return true;
37 }
38
39 return false;
40 }
41
53};
bool m_FullBody
Definition ActionBase.c:52
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
PluginBase GetPlugin(typename plugin_type)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateConditionComponents()
override bool IsUsingProxies()
override void OnFinishProgressServer(ActionData action_data)
Super root of all classes in Enforce script.
Definition EnScript.c:11
const float SMALL
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.