DayZ 1.24
Loading...
Searching...
No Matches
ActionRestrainTarget.c File Reference

Go to the source code of this file.

Classes

class  ActionRestrainTargetCB
 
class  ActionRestrainTarget
 
class  ChainedDropAndRestrainLambda
 
class  SurrenderData
 

Functions

void RestrainTargetPlayerLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
override void OnSuccess (EntityAI new_item)
 

Variables

ChainedDropAndRestrainLambda m_TargetPlayer
 

Function Documentation

◆ OnSuccess()

override void OnSuccess ( EntityAI new_item)

Definition at line 206 of file ActionRestrainTarget.c.

207 {
208 super.OnSuccess(new_item);
209
210 m_TargetPlayer.SetRestrained(true);
211 m_TargetPlayer.OnItemInHandsChanged();
212 }
ChainedDropAndRestrainLambda m_TargetPlayer

References m_TargetPlayer.

◆ RestrainTargetPlayerLambda()

void RestrainTargetPlayerLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )

Definition at line 197 of file ActionRestrainTarget.c.

198 {
200
202 targetHnd.SetHands(m_TargetPlayer, null);
203 OverrideNewLocation(targetHnd);
204 }
InventoryLocation.

References m_TargetPlayer.

Referenced by ActionRestrainTarget::OnFinishProgressServer(), and ChainedDropAndRestrainLambda::OnSuccess().

Variable Documentation

◆ m_TargetPlayer