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: Delay a .WAC Event
bullet magnet
Captain
****


Avatar


Posts: 263
Registered: 6-26-2005
Member Is Offline

Mood: Modding

[*] posted on 9-15-2007 at 11:43 AM
Delay a .WAC Event


Im getting the hang of this .WAC stuff, but I have one question which will be very useful to me. How do you delay an event? Such as...

if ssndead(2) and never() then
wave("Play643.wav", 100)
endif


How would I put about a 2 second delay command... without using the "chain" command in a seperate line of code?




View user's profile View All Posts By User
Assassin Xaero
DFB Map Rater
*********


Avatar


Posts: 1985
Registered: 4-18-2005
Location: Missouri
Member Is Offline


[*] posted on 9-15-2007 at 12:33 PM


I don't think there is a way without using the chain command. Maybe the link command, but I've never used that. Then again, I maybe wrong. I don't see why you can't use the chain command?

if ssndead(2) and never() then endif
if chain(2) and never() then wave("Play643.wav", 100) endif









‡ BHD ‡ BHD:TS ‡ JO:TR ‡

View user's profile Visit user's homepage View All Posts By User This user has MSN Messenger
Eagle_Eye
Senior Admin
***********


Avatar


Posts: 8865
Registered: 9-7-2002
Location: Adelaide, South Australia
Member Is Offline

Mood: Grey,not Stupid

[*] posted on 9-15-2007 at 12:45 PM


I would use a combination event/wac.

Event..ie..event number 10
Trigger
If ssn2 is dead..with a 2 second delay.
No Action

Wac..

if event(10) and never() then
wave("Play643.wav", 100)
endif


EE










View user's profile Visit user's homepage View All Posts By User
bullet magnet
Captain
****


Avatar


Posts: 263
Registered: 6-26-2005
Member Is Offline

Mood: Modding

[*] posted on 9-15-2007 at 03:18 PM


Thanks for the help, ill just use Assassins idea. Didn't know you could make an "if" statement without a command.

I've tried your event idea EE, but I always get Sysdumped.





View user's profile View All Posts By User
Eagle_Eye
Senior Admin
***********


Avatar


Posts: 8865
Registered: 9-7-2002
Location: Adelaide, South Australia
Member Is Offline

Mood: Grey,not Stupid

[*] posted on 9-15-2007 at 03:48 PM


Shouldn't sysdump you, could be my syntax..did it off the top of my head..

EE









View user's profile Visit user's homepage View All Posts By User
bullet magnet
Captain
****


Avatar


Posts: 263
Registered: 6-26-2005
Member Is Offline

Mood: Modding

[*] posted on 9-15-2007 at 05:52 PM


I have the .WAC tutorial here, and i've tried the "event" command, but everytime I do, no matter what action or which event it sysdumps me.

It would be a very useful command for me.




View user's profile View All Posts By User
chrislew200~RSU~
Private
**




Posts: 52
Registered: 1-16-2007
Member Is Offline


[*] posted on 9-15-2007 at 09:07 PM


Try it like this

if ssndead(2) and elapse(4) and never() then
wave("Play643.wav", 100)
endif

View user's profile View All Posts By User
Assassin Xaero
DFB Map Rater
*********


Avatar


Posts: 1985
Registered: 4-18-2005
Location: Missouri
Member Is Offline


[*] posted on 9-15-2007 at 11:10 PM


Quote:
Originally posted by Eagle_Eye
I would use a combination event/wac.

Event..ie..event number 10
Trigger
If ssn2 is dead..with a 2 second delay.
No Action

Wac..

if event(10) and never() then
wave("Play643.wav", 100)
endif


EE



I've tried this before, and from what I've seen, the wac command ignores the delay on the med event. If you set it for a 2 second delay, the wac will go off then the event will 2 seconds later.









‡ BHD ‡ BHD:TS ‡ JO:TR ‡

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: 61.9% - SQL: 38.1%]












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