Jump to content
Sign in to follow this  
Joe Miller

Respawn

Recommended Posts

hello, i need help with the respawn of units.

I'm making a MP coop mission on the  D day Theme but i dont know how to do that Human player controlled soldier respawn when dead.

Could you help me?

EDIT: OK I MANAGED TO DO RESPAWN, NOW I HAVE TWO QUESTIONS:

1) How can i make that units respawn with full weapons // bullets.

2) How can i make that a unit respawn in a trigger wich move it into a vehicle?

My idea was: In respawn area i create a trigger, named trg activation by SOMEBODY, condition this ; on activation "_x moveincargo vehicle" for each units in list trg .

BUT it doesn't work.

Share this post


Link to post
Share on other sites

make a Init.sqs and a respawn.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">init.sqs

[] exec "respawn.sqs"

exit

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">respawn.sqs

?!(player==_this select 0):exit

#Loop

@!(alive player)

~30 (change this value to what the spawn time you have)

@alive player

removeallweapons player

player addmagazine "G36Amag"

player addmagazine "G36Amag"

player addmagazine "G36Amag"

player addmagazine "G36Amag"

player addmagazine "handgrenade"

player addweapon "G36A"

player selectWeapon "G36A"

goto "Loop"

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  

×