17 m_Text =
"#STR_ArmExplosive";
38 if (target.GetParent())
54 return timedTrigger.IsAlarmOn() && explosive.IsTimerDetonable() && explosive.CanBeArmed();
57 return explosive.CanBeArmed();
71 explosive.UnlockTriggerSlots();
72 explosive.SetTakeable(
false);
75 if (action_data.
m_MainItem.IsInherited(RemoteDetonator))
94 explosive.UnlockTriggerSlots();
95 explosive.SetTakeable(
false);
98 if (!action_data.
m_MainItem.IsInherited(RemoteDetonator))
113 explosive.PairWithDevice(trigger);
133 explosive.UnlockTriggerSlots();
134 ItemBase receiver =
ItemBase.Cast(explosive.GetInventory().CreateAttachment(
"RemoteDetonatorReceiver"));
137 MiscGameplayFunctions.TransferItemProperties(action_data.
m_MainItem, receiver);
138 receiver.LockToParent();
159 action_data.
m_Player.PredictiveTakeEntityToTargetAttachmentEx(target_EAI, action_data.
m_MainItem, slot_id);
ActionAttachExplosivesTriggerCB ActionContinuousBaseCB ActionAttachExplosivesTrigger()
protected void CreateRemoteDetonatorReceiverAsAttachment(ActionData action_data)
protected void AttachItem(ActionData action_data)
bool CanBeSetFromInventory()
void CreateConditionComponents()
void OnEndServer(ActionData action_data)
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ClearInventoryReservationEx(ActionData action_data)
protected bool m_FullBody
class ActionTargets ActionTarget
override void CreateActionComponent()
protected ActionData m_ActionData
protected void OnFinishProgressClient(ActionData action_data)
protected void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
ref ActionTarget m_Target
override bool ActionConditionContinue(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
provides access to slot configuration
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
static RemoteDetonatorTrigger SpawnInPlayerHands(notnull EntityAI pEntity)
const float EXPLOSIVE_ARM
DayZPlayerConstants
defined in C++