03.08.2013, 19:05
ok, so I know that this should be possible without too much trouble.
I have started coding just a few days ago, currently I'm making a gamemode (freeroam, gonna use it on LAN)
Now my question:
I have made a command called '/mod1' which teleports the player to a modding garage, there are several modable vehicles parked there for you to easily pick one. Then the player modifies it. That all goes perfectly.
Then another command is '/race' which teleports the player to a 'race track' (a highway).
What happens is that when the player types /race then only he is teleported to the race track and not his car, even tough he is in it.
Now I did find a method online (never tried it), which basically checked which car the player was in before teleporting and then spawns the car at the 'race track'.
But I dont want to spawn an identical car, but the same car. I know that this is possible as I have modified and teleported along with cars in this server
Sorry if this has been asked already, i couldnt find what i was looking for.
I have started coding just a few days ago, currently I'm making a gamemode (freeroam, gonna use it on LAN)
Now my question:
I have made a command called '/mod1' which teleports the player to a modding garage, there are several modable vehicles parked there for you to easily pick one. Then the player modifies it. That all goes perfectly.
Then another command is '/race' which teleports the player to a 'race track' (a highway).
What happens is that when the player types /race then only he is teleported to the race track and not his car, even tough he is in it.
Now I did find a method online (never tried it), which basically checked which car the player was in before teleporting and then spawns the car at the 'race track'.
But I dont want to spawn an identical car, but the same car. I know that this is possible as I have modified and teleported along with cars in this server
Sorry if this has been asked already, i couldnt find what i was looking for.