Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Respawn only Players  (Read 1754 times)

0 Members and 1 Guest are viewing this topic.

rezz

  • Guest
Respawn only Players
« 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

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Respawn only Players
« Reply #1 on: 10 Sep 2004, 16:12:38 »
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:
Code: [Select]
;
;/**

; * 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
« Last Edit: 10 Sep 2004, 16:14:13 by Zombie »