OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Teote on 30 Apr 2003, 04:01:03
-
I am making a sort-of Attack and Deffend Senerio for multi-player where one team is deffending the flag and when then other team scores they get a point and both teams switch sides. Everything works including moving the respawn makers, but when you respawn you still respawn in your current position.
Is it possible to move the respawn and change is so that you will respawn in the position you move it too, or is the respawn position set with the levels load and can not be changed? ???
Thanks for any help you guys can give me :cheers:
-
you can have a player respawn wherever you want him using any marker and a "setpos" command
You can do it the following way using a trigger and a simple script
Trigger is
Condition : Alive W1
where W1 is the name of the player
Act: [W1, "Markername"] exec "respawn.sqs"
************************************************************
;;respawn.sqs
_player = _this select 0
_respawn =_this select 1
_position = getMarkerpos _respawn
_player setpos _position
Exit
****************************************************************
All you need to do now is tweak it, so that it can cope with a changing respawn location
-
Thanks Terox, I think I can use that script and make it work with it.
Thank You! :thumbsup:
-
Perhaps you were just moving the respawn marker on one players machine and not the others??
Doolittle