2159 {
2160 if (GetEntityInHands())
2161 {
2163 if (wpn)
2164 {
2166
2168 if (pb && e)
2169 {
2170 pb.GetWeaponManager().SetRunning(true);
2171
2173 {
2174 fsmDebugSpam(
"[wpnfsm] " +
Object.GetDebugName(wpn) +
" recv event from remote: created event=" + e);
2175 }
2176
2178 {
2179 wpn.ProcessWeaponAbortEvent(e);
2180 }
2181 else
2182 {
2183 wpn.ProcessWeaponEvent(e);
2184 }
2185 pb.GetWeaponManager().SetRunning(false);
2186 }
2187 }
2188 else
2189 Error(
"OnEventForRemoteWeapon - entity in hands, but not weapon. item=" + GetEntityInHands());
2190 }
2191 else
2192 Error(
"OnEventForRemoteWeapon - no entity in hands");
2193 return true;
2194 }
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.