OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Bad Maniac on 17 Apr 2003, 17:26:24

Title: Moving Respawn point.
Post by: Bad Maniac on 17 Apr 2003, 17:26:24
How would I move the resawn point in a Co-Op MP game, through a trigger or other way.

In my mission, the players get heli dropped (finally working, thanks) on one island, then have to overcome an enemy infantry unit to steal a patrol boat to get to another island where the main objective is. (destroy a few anti air guns, hence they cant get air dropped on that island)
But once they have landed and disembarked on the second island, I'd like the respawn point to move to a point on the shore of that island, otherwise they'll respawn on the first island, but there is no boat to steal any more.

How could this be done?
Thanks in advance.
Title: Re:Moving Respawn point.
Post by: Black_Feather on 17 Apr 2003, 21:22:19
do you respawn at a marker? if you do you should just move the marker like this

"Markername" setMarkerPos [0,0,0]

Title: Re:Moving Respawn point.
Post by: Artak on 17 Apr 2003, 21:23:34
As your respawn spot is marked with a marker called "wespawn_west" you can put

"respawn_west" setmarkerpos getmarkerpos "markername"

or

"respawn_west" setmarkerpos getpost "gamelogicname"

or

"respawn_west" setmarkerpos [x,y,z]

For example, make a trigger which detects that the units have reached the second island and in it's on activation field put "respawn_west" setmarkerpos getmarkerpos "second_respawn"

Then make a marker called "second_respawn" on the second island to a spot where you'd like your dudes to respawn to  ;D
Title: Re:Moving Respawn point.
Post by: Bad Maniac on 18 Apr 2003, 15:12:45
Awesome Artak, it works lie a charm  ;)
Thanks guys.