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: IncomingMissile event and dedicated servers  (Read 2217 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
IncomingMissile event and dedicated servers
« on: 23 Jun 2007, 21:58:22 »
The server spawns an AI tank with its crew and adds the following event to the tank:

Code: [Select]
_eh = _tank addEventHandler ["IncomingMissile",{deleteVehicle (_this select 0)}];

And no matter how many missiles you fire against that tank, the IncommingMissile event is never executed.

In SP it executes correctly and deletes the tank as soon as a missile is fired against it.

Is there any way to make it work in dedi servers?  ???

EDIT: Found a way with SetVehicleInit and ProcessInitCommands.
« Last Edit: 24 Jun 2007, 01:31:47 by Mandoble »