OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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.
-
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).
-
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".
-
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")
-
the last syntax worked Great! Thanks you Guys Rock!!