42 if (
att &&
player.GetInventory().CanAddEntityIntoHands(
att))
56 if (!
GetGame().IsDedicatedServer())
61 if (!
GetGame().IsDedicatedServer())
78 if (
GetGame().IsMultiplayer() &&
GetGame().IsServer())
return true;
100 if (!
GetGame().IsMultiplayer())
152 if (
att &&
player.GetInventory().CanAddEntityIntoHands(
att))
187 if (
att &&
player.GetInventory().CanAddEntityIntoHands(
att))
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ClearInventoryReservationEx(ActionData action_data)
ActionDetachFromTarget_SpecificSlot_WoodenPlanks ActionDetachFromTarget_SpecificSlot ActionDetachFromTarget_SpecificSlot_MetalSheets()
ActionDetachFromTarget_SpecificSlotsCategory_Barrel ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate()
override int FindSlotIdToDetach(PlayerBase player, ActionTarget target, ItemBase item)
ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget ActionDetachFromTarget_SpecificSlot_WoodenLogs()
ActionDetachFromTarget m_slotToDetach
void ActionDetachFromTarget_SpecificSlot_WoodenPlanks()
void ActionDetachFromTarget_SpecificSlotsCategory_Barrel()
override int FindSlotIdToDetach(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
override void OnExecuteClient(ActionData action_data)
void ActionDetachFromTarget()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override ActionData CreateActionData()
override bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
override void CreateConditionComponents()
void Process(ActionData action_data)
int FindSlotIdToDetach(PlayerBase player, ActionTarget target, ItemBase item)
override Object GetDisplayInteractObject(PlayerBase player, ActionTarget target)
provides access to slot configuration
const int INVALID
Invalid slot (-1)
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
proto native CGame GetGame()