explosive_device.ExplodedEvent won't trigger if instigator is not an agent

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Devices

Summary

The ExplodedEvent needs an agent as you can see :

ExplodedEvent<public>:listenable(agent) = external {}

This means that if the explosive device got exploded by something else (another explosive device for example), it won’t trigger the event.

I think the function should return an ?agent instead so we can program our logic accordingly

After this there’s no manually check if the device got exploded or not.

Steps to Reproduce

  • Place 2 explosive devices next to each other
  • Shoot one
  • Watch logs (only one call)

Expected Result

Should trigger even if exploded from non agent instigator

Observed Result

Doesn’t trigger the event

Platform(s)

PC