Home   Help Search Login Register  

Author Topic: Event handler - incomingmissile  (Read 1185 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Event handler - incomingmissile
« on: 23 Dec 2004, 14:56:29 »
I want to add a missile warning system to a vehicle.  Presuming I have defined an "incoming" sound class, will the following code work in an MP setting?  Will the vehicle driver actually hear the sound?

Code: [Select]
vehicle AddEventHandler ["incomingmissile",{(_this Select 0) Say "Incoming"}]
urp!

Korax

  • Guest
Re:Event handler - incomingmissile
« Reply #1 on: 23 Dec 2004, 22:09:42 »
Yes, since the eventhandler is global everyone should hear the vehicle say the sound, including the driver.