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: Killed Event Handler  (Read 1876 times)

0 Members and 1 Guest are viewing this topic.

Unnamed

  • Guest
Killed Event Handler
« on: 09 Sep 2004, 07:06:25 »
I've read a couple of posts about the killed event handler, but I dont know enough about MP to know if it answers the question I had.

If I create an empty vehicle, on a dedicated server, and add a killed event. Using the following code:

Code: [Select]
? !(Local Server):Exit

_Tank="M1A1" CreateVehicle _TankPos

_Tank AddEventHandler ["killed",{_this exec "killed.sqs"}]

Will killed.sqs be activated only by the server, even if the tank is being driven by a player, when it's destoyed?

Cheers

olseric

  • Guest
Re:Killed Event Handler
« Reply #1 on: 09 Sep 2004, 08:36:18 »
Someone correct me if I'm wrong, but yes, it will be server-side only because the event handler was added server-side only.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Killed Event Handler
« Reply #2 on: 09 Sep 2004, 13:27:18 »
that's the way I understand it.  The ?!(local server):exit command will exit the script from non server machines.    Make sure in the mission you put a game logic named server

Unnamed

  • Guest
Re:Killed Event Handler
« Reply #3 on: 09 Sep 2004, 22:48:44 »
Nice one.

Cheers