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?Assassin Xaero - 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) endifEagle_Eye - 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
bullet magnet - 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.
Eagle_Eye - 9-15-2007 at 03:48 PM
Shouldn't sysdump you, could be my syntax..did it off the top of my head..
EEbullet magnet - 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.chrislew200~RSU~ - 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
Assassin Xaero - 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.