How to get all creatures in playspace

HI. Im trying to get an array of all the creatures currently currently in the playspace or onscreen or in a volume. which ever works.

but i can only find functions that get players.

I thought get participants would do the trick but seems that doesn’t apply to creatures.

thanks.

Try putting a tag on all of your creature spawners, then subscribing SpawnedEvent and eliminatedEvent for each tagged spawner. You can then add the spawned Agent to an array when spawned in, and remove when eliminated. Then you can just reference your Agent array when you want to access all the creatures.

1 Like