It seems like dynamically spawning a vfx powerup using this tutorial (Spawn devices dynamically using Verse! (And a bit of cursed tricks) | Community tutorial) would solve my problem, but I’ve encountered various problems trying to apply it to my use case.
- Spawned devices seem to revert to default settings (so pickup radius gets reverted).
- If instead I use a volume or mutator zone device, I first get a validation error. Then when I hit autofix it seems to work. However, when I start my game and spawn my volume, the FindCreativeObjectsWithTag events can find the spawned volume, but none of the listenable events fire at all (this was not a problem for the vfx powerup device.
So that brings me here, wondering what the best way to go about spawning a prop (or some other thing) that can listen for when a player overlaps it and run some arbitrary code when that happens. So far the only options I can think of are:
- Just have a bunch of already placed devices hidden in the level somewhere, then teleport them to locations to imitate them being spawned in (not ideal as I’d like to change the amount spawned throughout the game)
- Create some function that runs every tick to check whether the player transform overlaps some area. This seems problematic for performance when many powerups are spawned or when the player is moving fast (they can be in a vehicle so it is certainly plausible that they’d move quickly).
Thanks!