DayZ 1.24
Loading...
Searching...
No Matches
ActionDefibrilateTarget.c
Go to the documentation of this file.
8
10{
12 {
15 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING;
16 m_FullBody = true;
17 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#defibrilate_target";
19 }
20
27
29 {
30 Defibrillator defib;
31 PlayerBase player = action_data.m_Player;
32 Class.CastTo(defib, action_data.m_MainItem);
33
35 }
36
38 {
39 Defibrillator defib = Defibrillator.Cast(action_data.m_MainItem);
40 PlayerBase target_player = PlayerBase.Cast(action_data.m_Target.GetObject());
41
43 }
44};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
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
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
void DefibrillateClient(PlayerBase player, Defibrillator defib)
void DefibrillateServer(PlayerBase player, Defibrillator defib)
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override void OnFinishProgressClient(ActionData action_data)
Definition CCTMan.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
const float DEFAULT
const float DEFIBRILATE
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.