I have a explosive device on the map and when it explodes I want to perform an action.
I compile the code and set the ExplosiveBarrel editable to the explosive device.
When it explodes, the event does not fire.
Is this a bug or am I just doing something wrong here.
@editable
ExplosiveBarrel:explosive_device = explosive_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
# TODO: Replace this with your code
ExplosiveBarrel.ExplodedEvent.Subscribe(OnExploded)
OnExploded(Agent: agent):void=
Print("OnExploded")
Since this compiles fine I assume the syntax is correct …?