4304 {
4305 if (GetEntityInHands())
4306 {
4308 if (wpn)
4309 {
4311
4313 if (pb && e)
4314 {
4315 pb.GetWeaponManager().SetRunning(true);
4316
4318 {
4319 fsmDebugSpam(
"[wpnfsm] " +
Object.GetDebugName(wpn) +
" recv event from remote: created event=" + e);
4320 }
4321
4323 {
4324 wpn.ProcessWeaponAbortEvent(e);
4325 }
4326 else
4327 {
4328 wpn.ProcessWeaponEvent(e);
4329 }
4330 pb.GetWeaponManager().SetRunning(false);
4331 }
4332 }
4333 else
4334 Error(
"OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
4335 }
4336 else
4337 Error(
"OnEventForRemoteWeapon - no entity in hands");
4338 return true;
4339 }
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.