DayZ 1.24
Loading...
Searching...
No Matches
ActionCollectSampleSelf.c
Go to the documentation of this file.
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_COLLECTBLOODSELF;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#collect_sample";
19 }
20
26
27 override bool HasTarget()
28 {
29 return false;
30 }
31
33 {
35 Class.CastTo(nacdata, action_data.m_ActionComponent.GetACData());
36 float delta = 0;
37 if (nacdata)
39
40 if (delta > 0)
41 {
43 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
44 }
45 }
46};
47
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
override void CreateConditionComponents()
override void OnEndServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
Super root of all classes in Enforce script.
Definition EnScript.c:11
const float PRECISE_MEDIUM
const float COLLECT_SAMPLE
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.