OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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.
-
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).
-
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?
-
Appologies for digging this up, but I need to know this as well :-[
With the "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
-
Appologies for digging this up, but I need to know this as well :-[
With the "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")
-
A-Ha! Thanks for the response. :D
Cheers,
LooseKannon
-
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
"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
"respawn_west" setMarkerPos getpos object myobjectID
-
Cheers for the help, Jason0! :D