using more than one spawner

I’m new to map creating and Verse. I saw a video to get the code to make character invisible when they crouch. My issue is I can only do one spawning pad. I’d like to be able to use multiple spawning pads. What would be the best way to be able to use more than one spawning pad? Attached is a screenshot of what I have so far. Thank you for reading.

1 Like

Change your @editable with an array

@editable
Spawners : []player_spawner_device = array{}

Then in your OnBegin, iterate through the array values :

for(Spawner: Spawners):
    Spawner.SpawnedEvent.Subscribe(HandleSpawnEvent)

You might have to try to kill your players to see if this doesn’t get called many times, also try to kill them when they’re invisible to see if they come back visible. Be careful with rounds too, as some states can get carried over rounds for some reason!

1 Like

thank you for the information.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.