18 if ( player && target_entity && item )
20 if ( target_entity.IsStaticTransmitter() && target_entity.GetInventory().AttachmentCount() == 0 )
36 if ( target_entity.GetInventory().FindFirstFreeLocationForNewEntity( item_entity.GetType(),
FindInventoryLocationType.ATTACHMENT, target_location ) )
38 action_data.
m_Player.PredictiveTakeEntityToTargetAttachmentEx( target_entity, item_entity, target_location.
GetSlot() );
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ClearInventoryReservationEx(ActionData action_data)
class ActionTargets ActionTarget
FindInventoryLocationType
flags for searching locations in inventory
void ActionAttachPowerSourceToPanel()
override void OnExecuteServer(ActionData action_data)
protected void OnExecuteImpl(ActionData action_data)
override void CreateConditionComponents()
override void OnExecuteClient(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndClient(ActionData action_data)
ref ActionTarget m_Target
proto native int GetSlot()
returns slot id if current type is Attachment
proto native CGame GetGame()