81 bool backpack_present;
84 if (
GetDayZGame().GetGameState() != DayZGameState.IN_GAME )
95 inventory = player.GetHumanInventory();
97 if ( player && inventory )
111 if (att_item.IsWeapon())
112 weapon_present =
true;
115 melee_present =
true;
118 backpack_present =
true;
127 if (att_item.IsWeapon())
128 weapon_present =
true;
131 melee_present =
true;
134 backpack_present =
true;
137 if (weapon_present && melee_present && backpack_present)
150 switch ( ignite_type )
int GetID()
Get the ID registered in SEffectManager.
static void OnEquippedFullGear()
static void OnActionHandcuff()
static void OnPlayerKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
static void OnActionIgniteDrill()
static void OnActionMedsSurvivor()
static void OnActionGutDeer()
static void OnActionIgniteMatchbox()
static void OnActionDrink()
static void OnActionShave()
static void OnActionEat()
static void OnActionIgniteRoadflare()
static void OnCookedSteak()
void OnItemAttachedAtPlayer(EntityAI item, string slot_name)
void Event_OnPlayerIgnitedFireplace(EFireIgniteType ignite_type)
static string m_FullGear[GEAR_COUNT]
void Event_OnEntityKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
void OnActionBandageTarget()
void OnActionFinishedGutDeer()
static const int GEAR_COUNT
void OnActionFinishedShaveSelf()
void OnActionCookedSteak()
proto native DayZPlayer GetPlayer()
static ref ScriptInvoker SyncEvent_OnPlayerIgnitedFireplace
static ref ScriptInvoker SyncEvent_OnEntityKilled
proto native EntityAI FindAttachment(int slot)
Returns attached entity in slot (you can use InventorySlots.GetSlotIdFromString(name) to get slot id)
inventory for plain man/human
proto native EntityAI GetEntityInHands()
provides access to slot configuration
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
proto bool Remove(func fn, int flags=EScriptInvokerRemoveFlags.ALL)
remove specific call from list
proto bool Insert(func fn, int flags=EScriptInvokerInsertFlags.IMMEDIATE)
insert method to list
proto native CGame GetGame()