DayZ 1.24
Loading...
Searching...
No Matches
HandGuardHasItemInEvent Class Reference

Private Member Functions

void HandGuardHasWeapoonInEvent (Man p=null)
 
override bool GuardCondition (HandEventBase e)
 

Detailed Description

Definition at line 101 of file Hand_Guards.c.

Member Function Documentation

◆ GuardCondition()

override bool HandGuardHasItemInEvent::GuardCondition ( HandEventBase e)
inlineprivate

Definition at line 105 of file Hand_Guards.c.

106 {
107 EntityAI eai = e.GetSrcEntity();
108 bool result = false;
109 if (eai)
110 {
111 if (eai.IsWeapon())
112 result = true;
113 }
114#ifdef DEVELOPER
116 Debug.InventoryHFSMLog("GuardCondition result: " + result, "HandGuardHasWeaponInEvent", "n/a", "GuardCondition", e.m_Player.ToString());
117#endif
118 return result;
119 }
Definition Debug.c:14
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:183
static bool IsInventoryHFSMLogEnable()
Definition Debug.c:749

References Debug::InventoryHFSMLog(), and LogManager::IsInventoryHFSMLogEnable().

◆ HandGuardHasWeapoonInEvent()

void HandGuardHasItemInEvent::HandGuardHasWeapoonInEvent ( Man p = null)
inlineprivate

Definition at line 103 of file Hand_Guards.c.

103{ }

The documentation for this class was generated from the following file: