38 {
39 PlayerBase ntarget = PlayerBase.Cast(action_data.
m_Target.GetObject());
41 {
43 Class.CastTo(attachment, ntarget.GetInventory().FindAttachment(InventorySlots.MASK));
44
45 if (attachment && attachment.GetType() == "MouthRag")
46 {
47 UngagSelfLambda lamb =
new UngagSelfLambda(attachment,
"Rag", action_data.
m_Player);
48 lamb.SetTransferParams(true, true, true, false, 1);
49 action_data.
m_Player.ServerReplaceItemElsewhereWithNewInHands(lamb);
50 }
51 }
52 }
bool CanReceiveAction(ActionTarget target)
ref ActionTarget m_Target