OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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)
-
*bump*
-
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.
#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...