bullet magnet
Captain
  
Posts: 263
Registered: 6-26-2005
Member Is Offline
Mood: Modding
|
|
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?
|
|
|
Assassin Xaero
|
|
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
|
|
|
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
|
|
|
bullet magnet
Captain
  
Posts: 263
Registered: 6-26-2005
Member Is Offline
Mood: Modding
|
|
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
|
|
Shouldn't sysdump you, could be my syntax..did it off the top of my head..
EE
|
|
|
bullet magnet
Captain
  
Posts: 263
Registered: 6-26-2005
Member Is Offline
Mood: Modding
|
|
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~
Private

Posts: 52
Registered: 1-16-2007
Member Is Offline
|
|
Try it like this
if ssndead(2) and elapse(4) and never() then
wave("Play643.wav", 100)
endif
|
|
|
Assassin Xaero
|
|
| 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.
|
|
|