Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Racing Game - Spawning Cars and Teleporting Players?

Asked by
bobder2 135
10 years ago

So some friends and I are working on a racing game and I'm our scripter, however, I'm not too sure about how to get the cars to their starting positions, and what the best way to go about teleporting the player into the seat would be. We've got multiple cars so just putting them in the map and expecting players to hop in won't be viable. Here's the idea I had:

The Lighting has one copy of each car in each starting position per map, so for example: * Lighting contains cars 1-3 with correct positioning for starting position 1 * Copy the selected car and set the parent of the copy to the map * Teleport each player to the seat of their car in specific

I'm wondering if there's a better way of doing this because it seems like a big hassle to make one of each car in each position for each map. I haven't started scripting this yet because I'm not too sure if it would be a big waste of time or not. If you've got any ideas feel free to post them.

I'm not asking for you guys to script for me, just give me ideas if you can! :D Thanks for the read and thanks in advance for the replies!

1 answer

Log in to vote
0
Answered by
devDave 50
10 years ago

Have the car there and teleport the player in the seat and they will automatically sit in it. Also set their walk speed to 0

0
Thanks for the help with the teleporting at least. I still need suggestions on how to select cars and spawn them in effectively bobder2 135 — 10y
Ad

Answer this question