Home   Help Search Login Register  

Author Topic: I would love to make a mobileHQ respawn. Please help.  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

Manitou

  • Guest
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?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:I would love to make a mobileHQ respawn. Please help.
« Reply #1 on: 06 Dec 2003, 12:08:04 »
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"
Not all is lost.

slowworm

  • Guest
Re:I would love to make a mobileHQ respawn. Please help.
« Reply #2 on: 06 Dec 2003, 15:09:06 »
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
« Last Edit: 06 Dec 2003, 15:14:23 by slowworm »

Manitou

  • Guest
Re:I would love to make a mobileHQ respawn. Please help.
« Reply #3 on: 06 Dec 2003, 15:42:45 »
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