2474 {
2475 if (GetEntityInHands())
2476 {
2478 if (wpn)
2479 {
2481
2483 if (pb && e)
2484 {
2485 pb.GetWeaponManager().SetRunning(true);
2486
2488 {
2489 fsmDebugSpam(
"[wpnfsm] " +
Object.GetDebugName(wpn) +
" recv event from remote: created event=" + e);
2490 }
2491
2493 {
2494 wpn.ProcessWeaponAbortEvent(e);
2495 }
2496 else
2497 {
2498 wpn.ProcessWeaponEvent(e);
2499 }
2500 pb.GetWeaponManager().SetRunning(false);
2501 }
2502 }
2503 else
2504 Error(
"OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
2505 }
2506 else
2507 Error(
"OnEventForRemoteWeapon - no entity in hands");
2508 return true;
2509 }
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.