OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: primal on 06 Feb 2003, 05:41:26

Title: moving to different respawn zones on the map as mission progresses
Post by: primal on 06 Feb 2003, 05:41:26
I have been away from the game for about 2 months I guess.
 the Mission I was/am working on involves moving the respawn up to a different part of the island as the co-op players leave a certain area.
 is it as simple as making another trigger to cover the entire new area and setting the condition to make them respawn at the next respawn marker?
 having to run around 7000 k to get back in the battle kind of sucks.
I saw another thread and I wasn't sure if it applied to this kind of respawn, so if I could get some clarification I would appreciate it.
thanks.
Title: Re:moving to different respawn zones on the map as mission progresses
Post by: Ranger on 06 Feb 2003, 17:56:16
Since the location of respawn is determined by a marker, it's as simple as moving the marker.

So, you would use a trigger to determine when you want the respawn to be moved, such as after x seconds, or when the player enters or leaves a particular area.  Once this condition is met, then use the setMarkerPos command to move the respawn marker to the desired location.  E.g.,

"respawn_west" setMarkerPos [x,y]

Where x and y are the coordinates (there is no z coordinate for a marker).
Title: Re:moving to different respawn zones on the map as mission progresses
Post by: primal on 07 Feb 2003, 00:11:08
good solution, Ranger.
 my problem is, I can't be sure when the group will move into the next zone.
 isn't there a way to just reset the entire respawn area via trigger to another respawn marker point? (respawn_west2) something like that?
Title: Re: moving to different respawn zones on the map as mission progresses
Post by: LooseKannon on 14 Sep 2006, 10:06:48
Appologies for digging this up, but I need to know this as well  :-[

With the
Code: [Select]
"respawn_west" setMarkerPos [x,y]
, what would one put in [x,y]? Could you have ""respawn_west" setMarkerPos m2", whereas "m2" is an 'Empty' marker?

Cheers,
LooseKannon
Title: Re: moving to different respawn zones on the map as mission progresses
Post by: Seven on 14 Sep 2006, 15:04:38
Appologies for digging this up, but I need to know this as well  :-[

With the
Code: [Select]
"respawn_west" setMarkerPos [x,y]
, what would one put in [x,y]? Could you have ""respawn_west" setMarkerPos m2", whereas "m2" is an 'Empty' marker?

Cheers,
LooseKannon

Then you'd put

"respawn_west" setMarkerPos (getMarkerPos "m2")
Title: Re: moving to different respawn zones on the map as mission progresses
Post by: LooseKannon on 15 Sep 2006, 09:50:10
A-Ha! Thanks for the response.  :D

Cheers,
LooseKannon
Title: Re: moving to different respawn zones on the map as mission progresses
Post by: JasonO on 15 Sep 2006, 11:01:57
You dont just need a marker to move the respawn marker to. You can use any object as long as you know the object ID or object name.

If you want a custom object
Quote
"respawn_west" setMarkerPos getpos myobject

If the object is a island placed object.. go into editor and click Show ID's. Zoom in and you see a number. You use the following code

Quote
"respawn_west" setMarkerPos getpos object myobjectID
Title: Re: moving to different respawn zones on the map as mission progresses
Post by: LooseKannon on 16 Sep 2006, 04:52:51
Cheers for the help, Jason0!  :D