Terox: Got a question that I cant really figure out myself.
Im doing a Escape and Evade MP map where East must get to a certain point to win while West must then stop them.
And to spice things up I want to add random respawn. But just for the east side and not for west. How do I do that using your random respawn script? I want east to respawn randomly on Everon while West remains on a fixed position.
And I want east to start at a fixed position and then spawn randomly when they die.
Do you think its possible to make this work?
YESEach east Player would have a "Killed" eventhandler added to them
This would then run a random respawn script when they die which randomly setpo's them when they become alive again
MISSION EDITOR1) Create as many gamelogics as you want random respawn positions
2) Set their placement radious so it covers a decent sized area each (This allows even more randomised positioning
3) name them logic1, logic2 etc
4) create a marker called respawn_east somewhere out of the playing area, say an offshore island
INIT.sqs?(side player == east):player addEventHandler ["killed", {_this exec "Reborn.sqs"}]
tx_spawnpos = [logic1,logic2,logic3,logic4,logic5,logic6,logic7,logic8,logic9,logic10]
Reborn.sqs
@ alive Player
_countpos = count tx_spawnpos
#START
~0.1
;; selects one of the gamelogics at random
_pos = random _countpos
_pos = (_pos - _pos mod 1)
_position = getpos (tx_spawnpos select _pos)
Player setpos _position
exit
This type of mission would better lend itself to no respawn, makes the gameplay a bit more intense. Thats just mho, its your mission