Home   Help Search Login Register  

Author Topic: moving to different respawn zones on the map as mission progresses  (Read 2379 times)

0 Members and 1 Guest are viewing this topic.

primal

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

Offline Ranger

  • Members
  • *
  • Hoo-ah!
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).
Ranger

primal

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

LooseKannon

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

Offline Seven

  • Members
  • *
  • Am I a llama?
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")

LooseKannon

  • Guest
A-Ha! Thanks for the response.  :D

Cheers,
LooseKannon

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
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

LooseKannon

  • Guest
Cheers for the help, Jason0!  :D