OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: zenman1 on 18 Aug 2005, 00:48:59

Title: REspawn question?
Post by: zenman1 on 18 Aug 2005, 00:48:59
I hope this isnt already posted somewhere coulnt find it.

Im wondering if you can make a respawn for a coop mission
that updates the respawn location when you complete an
objective? I know how to do Instant respawn and respawn
to a marker.

Thanks for any input on this.
Title: Re:REspawn question?
Post by: nominesine on 18 Aug 2005, 13:50:01
I know how to do respawn
to a marker.

Well, then all you have to do is create a game logic, name it newPosition and place it where you want the new respawn point.

Then move the marker - I will call it west_base in my example -  to the game logic using the following syntax:

"west_base" setmarkerpos getpos newPosition

EDIT: Beware the syntax, IÂ'm at work without testing oportunities. If it doesnÂ't work, try to add some brackets around (newposition).
Title: Re:REspawn question?
Post by: zenman1 on 19 Aug 2005, 02:43:55
where do i put the syntax? If I put it in the init field of gamelogic it respawns to gamelogic marker
skipping over the first respawn marker "west_base".
Title: Re:REspawn question?
Post by: Terox on 19 Aug 2005, 16:19:09
use the following line in a trigger "on activation field" or a script exec by a trigger (the trigger being your objective completed trigger)


"respawn_west" setmarkerpos (getpos objectname)

or

"respawn_west" setmarkerpos (getmarkerpos "markername")
Title: Re:REspawn question?
Post by: zenman1 on 20 Aug 2005, 19:33:33
the last syntax worked Great! Thanks you Guys Rock!!