OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: rezz on 09 Sep 2004, 16:18:04
-
I know that I arleady posted this question in an other thread, but as less people are going to review it, i made a new one.
Here's my question. What do I have to do so that only the players respawn. With a description.ext file (respawn=2;respawndelay=5;) every playable soldiers respawn, but I only want the palyers to respawn
Thanks for help
-
this is what I use, it is also handy for removing the ai left behind when someone disconnects, which is what I wrote it for:
;
;/**
; * This will remove ai that are left when a player d/c's
; *@author Zombie
; *@created 1/8/04 11:57:31 AM
; */
?!(local Server): Goto "end"
#start
_loon = _this select 0
deletevehicle _loon
~5
goto "start"
#end
exit
if you aren't concerned about people disconnecting, then you don't need to loop it. Call this file from your init.sqs. The game won't perform deletevehicle on an actively player controlled unit