OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Mr.Peanut on 23 Dec 2004, 14:56:29

Title: Event handler - incomingmissile
Post by: Mr.Peanut 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"}]
Title: Re:Event handler - incomingmissile
Post by: Korax on 23 Dec 2004, 22:09:42
Yes, since the eventhandler is global everyone should hear the vehicle say the sound, including the driver.