UAV vehicles aren't firing Killed and EntityKilled events if there is HandleDamage event handler that tries to prevent the vehicle from taking damage (return anything <1). Vehicle still dies from collision and also doesn't fire Killed and EntityKilled event handlers. If you release UAV control few seconds before death killed events fire properly so it has something to do with remote control.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
No events:
- Start attached mission
- Fly up and go upside down to crash the drone
- Observe no events in chat or logs
Events working:
- Start same mission
- Fly up at least 15 meters high
- Flip the drone upside down and quickly release the connection with mouse wheel menu
- Observe that once you no longer control the drone there are Killed and EntityKilled events firing
This repro requires few seconds between control release and crash death, if you release right before crash events still wont fire.
If you comment out 0 from HandleDamage in init_ns.sqf so event returns nothing, events properly fire in both cases.