Jump to content
Sign in to follow this  
dan9of9

Respawn Area?

Recommended Posts

i tried searching first.

How do i make respawns over an area instead of just at the X marker.

i find if i change the marker to rectangle or elipse or whatever,lol it doesnt work any longer.

i know how to do respawn with markers called Respawn_West etc, i just dont get how to make a random 100x100circle area around the marker that allows random respawn in that area.

pls help. smile_o.gif (dungeon bowl 2 only needs this) smile_o.gif

Share this post


Link to post
Share on other sites

AFAIK, you only need to make the respawn marker 100x100 and the game will spawn you somewhere within that marker.  Whether it's random or not, I don't know.

So if everyone is on West, then make an ellipse marker 100x100 named respawn_west.

If you really want to randomize spawn locations, you can always script it.  Just place the respawn marker outside of the zone, then in the zone place some invisible Heli pads or Game Logics and name them each like Spawn1, Spawn2, etc..

Then put a trigger, set to repeat and put condition Alive Player in it.  for OnActivation, put [] exec "randomSpawn.sqs"

Then make a script with something like the following code:

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

~2

;;Set this number to the number of spawn locations

_spawnNumber = Random 12

_spawnNumber=(_spawnNumber+.05)-((_spawnNumber+.05) mod 1)

player setPos getPos call compile format ["Spawn%1",_spawnNumber]

Exit

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  

×