I am currently working on a racing game and so far i have been able to assign players to each vehicle on the start of the game. But after the race i want to be able to restart the race with a push of a button which will also assign players to their vehicles again but it’s not working for some reason. So far i am able to restart the race with a push of a button but the players don’t get assigned to their vehicles automatically. I tried using triggers but it still does not seem to work for some reason. Maybe I’m doing something wrong. Can i get some help?
How have you configured the triggers, vehicle spawners and player spawners together ?
What happens to the players at the end of a race before button push ?
well,i connected all the player spawners to the vehicle spawners so that the players will spawn in the vehicle as soon as the game starts. then i set a timed objective device and connected it to the race manager device to start a race after 5 seconds. The timed objective device starts the countdown after the game starts. and then the race begins. At the end of the race i placed a rift to teleport me back to the starting area of the race where i placed a button to start the race again. The button will respawn all the vehicles and also start the timed objective again so that the timed objective will activate the race manager when the timer has been completed. The problem is that the players dont automatically get assigned to the vehicle like before. they have to manually enter it for some reason
OK, There may be a better way to do this, but I think if you add a Player Reference Device for each spawnpad it should work.
for each Player Reference Device - In User Options Functions ;
Register Player - Player Spawnpad v On Player Spawned
Activate - Restart Button v On Interact
Then in the Vehicle Spawnpad,
User Options Functions;
Assigns Driver - Player Reference v On Activated.
Make sure you have the same vehicle used for the player reference as the spawnpad its registered to.
Let me know if it doesn’t work. I haven’t done it this way before.
okay let me try, thanks for the suggestion