Jump to content

Respawn


Stroth

Recommended Posts

Hi, i've a little problem with respawn,

Now, players respawn on the same location where they pressed B to spectate, so if a player make a fail, press B to spectate and press B again to play they will make the fail over and over again.

I want it like this: it would be good to respawn players on the last checkpoint they hit, like it is in classic race servers.

 

Someone can help me with this?
 

 

Link to comment
2 minutes ago, Stroth said:

Hi, i've a little problem with respawn,

Now, players respawn on the same location where they pressed B to spectate, so if a player make a fail, press B to spectate and press B again to play they will make the fail over and over again.

I want it like this: it would be good to respawn players on the last checkpoint they hit, like it is in classic race servers.

 

Someone can help me with this?
 

 

Show the code and it can be fixed.

Link to comment

You could create a table containing the coords for all colshapes and then add events ("onColShapeHit") to save the coords into the players data using setElementData(). Then you would capture when a player fails and spawn them back at where they last was using getElementData() to retrieve the saved coords.

Edited by Pembo
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...