DFBarracks - Forums




Delta Force Barracks Forums - Powered by XMB 1.9.11
Delta Force Barracks Forums
Not logged in [Login ]
Go To Bottom

Printable Version  
Author: Subject: a joic wac file question
sgt roc
Private
**




Posts: 35
Registered: 10-14-2003
Location: costa mesa , california
Member Is Offline


[*] posted on 11-25-2007 at 09:38 AM
a joic wac file question


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




View user's profile View All Posts By User This user has MSN Messenger
p1gs1ck
Map Rater
*********




Posts: 522
Registered: 7-18-2003
Location: Limbo
Member Is Offline

Mood: Vegas2!

[*] posted on 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.




"I am not responsible for your stupidity, but if I had a sledgehammer it could be arranged"
View user's profile Visit user's homepage View All Posts By User This user has MSN Messenger

  Go To Top

Powered by XMB 1.9.11
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 15] [PHP: 50.4% - SQL: 49.6%]












Copyright © 2002 - 2008 All Rights Reserved - DFBarracks.com
Site Design by A.Bullet - ScreamingDemon.com