2169 {
2170 if (GetEntityInHands())
2171 {
2173 if (wpn)
2174 {
2176
2178 if (pb && e)
2179 {
2180 pb.GetWeaponManager().SetRunning(true);
2181
2183 {
2184 fsmDebugSpam(
"[wpnfsm] " +
Object.GetDebugName(wpn) +
" recv event from remote: created event=" + e);
2185 }
2186
2188 {
2189 wpn.ProcessWeaponAbortEvent(e);
2190 }
2191 else
2192 {
2193 wpn.ProcessWeaponEvent(e);
2194 }
2195 pb.GetWeaponManager().SetRunning(false);
2196 }
2197 }
2198 else
2199 Error(
"OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
2200 }
2201 else
2202 Error(
"OnEventForRemoteWeapon - no entity in hands");
2203 return true;
2204 }
DayZPlayer GetDayZPlayerOwner()
WeaponEventBase CreateWeaponEventFromContext(ParamsReadContext ctx)
WeaponEventID
identifier for events. mainly for rpc purposes
void fsmDebugSpam(string s)
static bool IsWeaponLogEnable()
WeaponEventID GetEventID()
returns id from enum WeaponEventID
signalize mechanism manipulation
void Error(string err)
Messagebox with error message.