Jump to content
Sign in to follow this  
jeppelykke

Respawn script needed

Recommended Posts

Hey All...

Anyone have a respawn script or any idea how i can make 5 random respawn places on a map confused.gif when you die it waits i dont know know say 5-10 sec and it random select one of the 5 respawn places and you start from that location.

I Hope you can help i badly needs this for a mulitplayer map ALL VS ALL!

Any input is welcome, dont have a script but an idea how please let me know, doubt i can work it out but might be i can mix the thoughts and get it to work.

Best Regards

Jeppe Lykke, Denmark

Share this post


Link to post
Share on other sites

make a script..

#Loop

?(not alive Player1) : Goto "ReSpawn"

goto "Loop"

#Respawn

Player1 SetDammage 0

RndRespawn = Random 4

?(RndRespawn == 0) : Player1 setpos getpos Respawn1

?(RndRespawn == 1) : Player1 setpos getpos Respawn2

?(RndRespawn == 2) : Player1 setpos getpos Respawn3

?(RndRespawn == 3) : Player1 setpos getpos Respawn4

?(RndRespawn == 4) : Player1 setpos getpos Respawn5

Share this post


Link to post
Share on other sites

Thanx man smile.gif

You just saved our next netparty, this will make a stander in all my Maps smile.gif

Best Regards

Jeppe Lykke, Denmark

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (anders@dac.se @ July 15 2002,06:09)</td></tr><tr><td id="QUOTE">make a script..

#Loop

?(not alive Player1) : Goto "ReSpawn"

goto "Loop"

#Respawn

Player1 SetDammage 0

RndRespawn = Random 4

?(RndRespawn == 0) : Player1 setpos getpos Respawn1

?(RndRespawn == 1) : Player1 setpos getpos Respawn2

?(RndRespawn == 2) : Player1 setpos getpos Respawn3

?(RndRespawn == 3) : Player1 setpos getpos Respawn4

?(RndRespawn == 4) : Player1 setpos getpos Respawn5<span id='postcolor'>

Random 4 returns float values which mostly return numbers other than 1 2 3 4.

try

RndRespawn = Random 5;

?(RndRespawn <= 1) :...............................

.

.

.

also try

@(not alive Player1)

#Respawn

.

.

.

This assumes you make your respawn time 0... but sometimes the script kicks in before the respawn takes place in which case undesired effects take place.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×