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: Heli respawn and auto destruct  (Read 1777 times)

0 Members and 1 Guest are viewing this topic.

Praetorian

  • Guest
Heli respawn and auto destruct
« on: 15 Feb 2003, 22:18:27 »
I have an auto destruct script that destroys my helicopters 5 mins after someone gets in. The problem is that after the helo respawns the script will not work any more (the helo will no longer blow up after 5 mins). Can anyone help me? This is the init line of the chopper:

[EastAir, EastAirSpawn, 0, "Mi17"] exec ""vrespawn.sqs""; [this, this] exec "destruct.sqs";
« Last Edit: 15 Feb 2003, 22:18:40 by Praetorian »

Coyote @ rage

  • Guest
Re:Heli respawn and auto destruct
« Reply #1 on: 16 Feb 2003, 17:28:25 »
Can You give the script?
If the script obviously runs only once and doesnÂ't again after respawn, maybe you oughta try a trigger
- Repeatedly
- Condition: alive heli
- on Act:  The init line of your chopper, exchange all "this" for the name of the chopper.
and leave the init-fields of the chopper blank.
Should be one trigger for each chopper and mybe setting a few seconds time delay couldnÂ't hurt, in case the heli canÂ't take that commands right after itÂ's respawned.

I canÂ't confirm this, but I think init-fields are not "respawned". I had a lot of similar problems with addactions in init fields.

Coyote