DayZ 1.24
Loading...
Searching...
No Matches
ActionCollectSampleTarget.c
Go to the documentation of this file.
8
10{
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAGTARGET;
15 m_FullBody = true;
16 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
18 m_Text = "#collect_persons_sample";
19 }
20
26
28 {
29 PlayerBase ntarget = PlayerBase.Cast(action_data.m_Target.GetObject());
31 Class.CastTo(nacdata, action_data.m_ActionComponent.GetACData());
32
33 float delta = 0;
34 if (nacdata)
36
37 if (delta > 0)
38 {
40 action_data.m_Player.ServerReplaceItemInHandsWithNew(lambda);
41 }
42 }
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
override void OnEndServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
Definition CCTMan.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
const float DEFAULT
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.