Delta Force Barracks Forums

a joic wac file question

sgt roc - 11-25-2007 at 09:38 AM

I would like to be able to set area trigger in DFMED to control event. Then use event in the .WAC file to play .wav. It works fine but only 1 time. I want the area trigger to play .wav every time a blue player enters it or other ones. I know its been done. Rabid Chipmunk did it and I have his wac to read. But Im not good enough to understand the variables he used(I think). Is there anyone that can help me with this problem. Thank you

p1gs1ck - 11-26-2007 at 03:45 AM

This is a double post - you've already asked this question in another thread!

But here's an answer for you


As you've specified create a med event to test for blue team in area

event 0
If group 1 in area 1
(no action only trigger)
resetting event every second



then in WAC

if event(0) then
wave("xxxxx.wav", 100)
endif

this would make the wav repeatedly play every second that someone stands in area

If you do not want the sound to continually repeat when people are in the target area,then that is a more complicated answer.

2 med events



event 0
trigger
if group 1 in area 1
action
inc var1
reset every second

event 1
trigger
IF group 1 not in area 1 (group 1 area 1 false)
action
var1=0
reset every second


then in WAC
if eq(v1,1) then
wave("xxxxx.wav", 100)
endif


Simple really


Cheers, P1gs1ck.