DayZ 1.24
Loading...
Searching...
No Matches
ActionCollectSampleTarget Class Reference
Inheritance diagram for ActionCollectSampleTarget:
[legend]
Collaboration diagram for ActionCollectSampleTarget:
[legend]

Private Member Functions

void ActionCollectSampleTarget ()
 
override void CreateConditionComponents ()
 
override void OnEndServer (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 9 of file ActionCollectSampleTarget.c.

Constructor & Destructor Documentation

◆ ActionCollectSampleTarget()

void ActionCollectSampleTarget::ActionCollectSampleTarget ( )
inlineprivate

Member Function Documentation

◆ CreateConditionComponents()

override void ActionCollectSampleTarget::CreateConditionComponents ( )
inlineprivate

Definition at line 21 of file ActionCollectSampleTarget.c.

22 {
25 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
Definition CCTMan.c:2
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ OnEndServer()

override void ActionCollectSampleTarget::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 27 of file ActionCollectSampleTarget.c.

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 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
const float COLLECT_SAMPLE
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), UATimeSpent::COLLECT_SAMPLE, and m_SpecialtyWeight.


The documentation for this class was generated from the following file: