72 {
73 PlayerBase targetPlayer = PlayerBase.Cast(action_data.m_Target.GetObject());
74
76 {
77 EntityAI item_in_hands = targetPlayer.GetItemInHands();
78 targetPlayer.SetRestrained(false);
79 if (item_in_hands)
80 {
81 MiscGameplayFunctions.TransformRestrainItem(item_in_hands, null, action_data.m_Player, targetPlayer);
82 }
83 else
84 {
85 ErrorEx(
"Failed to obtain item in target player's hands during empty handed unrestraining");
86 }
87 }
88 }
bool CanReceiveAction(ActionTarget target)