When subscribing to a creature's fort_character EliminatedEvent, the event never fires when the creature is eliminated

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

If you try to subscribe to a creature’s fort_character EliminatedEvent, the function that is listening for that event will never fire when the creature has been eliminated

Steps to Reproduce

  1. Set up a creature placer device in verse
  2. Subscribe to the SpawnedEvent on the creature placer and create a function that subscribes that creature to the EliminatedEvent in it’s fort_character
  3. Spawn in a creature and kill it with a weapon

Expected Result

When the creature dies, the function that is listening for its EliminatedEvent fires

Observed Result

The function that is listening to the creature’s EliminatedEvent never fires

Platform(s)

Windows

I would like to bump this as it is still an issue. This also applies to using “Await” for the event in addition to “Subscribe”.

Creatures are not fort characters. Directly subscribe to the spawner device Eliminated event, then you should be able to get the source and target from the device_ai_interaction_result.

Incorrect, creatures do have the fort_character interface. I did not realize that the spawner itself gave the device_ai_interaction_result though so I appreciate that info.

Right I always use character for players, now I remembered it is possible to get fort character for guards as well.

I am glad you are no longer blocked.

1 Like