3 override void CreateActionComponent()
18 m_Text =
"#put_on_targets_head";
21 override void CreateConditionComponents()
31 Class.CastTo(targetPlayer, target.GetObject());
32 if ( !IsWearingHeadgear(targetPlayer) )
40 override void OnFinishProgressServer(
ActionData action_data )
44 if (
Class.CastTo(ntarget, action_data.m_Target.GetObject()) &&
CanReceiveAction(action_data.m_Target))
47 action_data.m_Player.ServerReplaceItemInHandsWithNewElsewhere(lambda);
55 if ( player.GetInventory().FindAttachment(
InventorySlots.HEADGEAR) )
73 OverrideNewLocation(targetAtt);