OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: WizzyWig on 28 Apr 2003, 23:06:20

Title: different sound for each team script
Post by: WizzyWig on 28 Apr 2003, 23:06:20
ok i would like to make a script that detects what side activates the script in the addon.

so say EAST activats openhand.sqs i would like it to play haha.ogg
but if WEST activates the sma script i would like it to play cooldude.ogg is this detection script posible if so how please can u tell me as i nned it for new addon

thanks

(sound file name are not correct and are only exsamples)
Title: Re:different sound for each team script
Post by: WizzyWig on 03 May 2003, 10:16:54
*bump*
Title: Re:different sound for each team script
Post by: Knut Erik on 07 May 2003, 11:22:27
Hmm. Tricky one...

You could create two triggers. One for East pressent and one for West pressent.
On the west trigger put westsound=True
On the east trigger put eastsound = True

The create the script.

Code: [Select]
#check
?Westsound : goto "West"
?Eastsound : goto "East"
~1
goto "Check"

#West
playsound "westsound"
goto "Check"

#East
Playsound "Eastsound
goto "Check"

Don't know if this script is so good, but at least you'll se what I'm getting to...