Page MenuHomeFeedback Tracker

Player controlled UAV's aren't firing Killed and EntityKilled events if there is HandleDamage stopping damage
New, NormalPublic

Description

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.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

No events:

  1. Start attached mission
  2. Fly up and go upside down to crash the drone
  3. Observe no events in chat or logs

Events working:

  1. Start same mission
  2. Fly up at least 15 meters high
  3. Flip the drone upside down and quickly release the connection with mouse wheel menu
  4. 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.

Event Timeline

SaMatra created this task.May 8 2024, 7:44 AM