Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Devices
Summary
When an objective_device
is destroyed by an explosive_device
, DestroyedEvent
is not raised. The device does not provide IsValid
, so there is no other way to know it was destroyed.
This is a problem for my map, as I want to end the round when all objective devices are destroyed, whether it is done by players or explosives.
Steps to Reproduce
- Add an
objective_device
to the map - Add an
explosive_device
to the map, make it powerful enough to destroy the objective and place it close enough - In Verse, subscribe to
Objective.DestroyedEvent
- In Verse, call
Explosive.Explode
, passing any agent (e.g. first player)
Expected Result
Objective.DestroyedEvent
is triggered, and passes the agent that instigated the explosive. Alternatively, there is some other way to check that an objective has been destroyed.
Observed Result
Objective.DestroyedEvent
is not triggered.
Platform(s)
Windows