66 {
67 PlayerBase target_player = PlayerBase.Cast(action_data.m_Target.GetObject());
68
70 {
71 if ( target_player.IsSurrendered() || !target_player.CanBeRestrained() )
72 {
73 return false;
74 }
75 }
77 {
78 ActionRestrainTargetCB callback = ActionRestrainTargetCB.Cast(action_data.m_Callback);
79
81 {
82 target_player.SetRestrainPrelocked(true);
83 }
84
86
87 }
88 return true;
89 }
float GetActionComponentProgress()
proto native Mission GetMission()
bool IsPlayerDisconnecting(Man player)
proto native CGame GetGame()