I have successfully implemented a respawn point that follows the player during the mission
now I would add a random feature..
I mean, ok the respawn marker gets the position of where the player dies than I would add some random amount of meters so you will respawn "near" your dead body but not exaclty upon it.. so
- how can I do that?
- how generate a random number like X, with 30meters < X < 100meters
the respawn script is the one found in the tutorial section:
Init.sqs - player addEventHandler ["killed", {_this exec "myrespawn.sqs"}]
;MyRespawn.sqs
Player removealleventhandlers "Killed"
@ alive player
Player setpos (getmarkerpos "respawn_west")
player addEventHandler ["killed", {_this exec "myrespawn.sqs"}]
Thank you