OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Manitou on 06 Dec 2003, 00:48:49
-
I make missions for a group of friends. They have asked me to make a mission in which you must complete your objectives, whilst protecting a mobileHQ that acts as our respawn point. I've seen it done in a mission on 1 of the public servers and on TCTI maps. can any of you fine people please help me out?
-
It can be done by moving the respawn marker with the vehicle. What you'd do is make a scipt executed in the init.sqs that has something like this in it.
#loop
?!alive jeep1: hint "Your Mobile HQ has been destroyed"; exit
"respawn_west" setmarkerpos getpos jeep1
~1
goto "loop"
-
Did't try this myself by now. But AFAIK:
Another option would be a fake respawn: You have a normal static respawn point, anywhere far off. Right after respawning you reequip your soldiers and teleport them to the MHQ.
That should make it easier if you want to give them the loadouts they had in the beginning. There are some examples at the editors depot. Just search for "respawn".
"Player Respawn / Reequip" is the script you could use.
cu slowworm
-
Cheers, Artak and slowworm. Tested your ideas and they work fine for me. Stick you address in a reply if you 2 would like a copy of my mission once I get the thing to a final stage ;D