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 OnActionIgniteRoadflare()
static void OnCookedSteak()
static void OnActionDrink()
static void OnActionIgniteMatchbox()
static void OnActionIgniteDrill()
static void OnActionHandcuff()
static void OnActionMedsSurvivor()
static void OnActionEat()
static void OnEquippedFullGear()
static void OnActionGutDeer()
static void OnActionShave()
static void OnPlayerKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
static string m_FullGear[GEAR_COUNT]
void Event_OnEntityKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
static const int GEAR_COUNT
void OnActionBandageTarget()
void OnActionFinishedShaveSelf()
void OnItemAttachedAtPlayer(EntityAI item, string slot_name)
void OnActionFinishedGutDeer()
void Event_OnPlayerIgnitedFireplace(EFireIgniteType ignite_type)
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)
proto native EntityAI GetEntityInHands()
inventory for plain man/human
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
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()