Quote:
Originally Posted by gorlosky
I have reviewed dave61's page and there is a lot of info, but one thing I did not find was the defintion of chain(), although there are examples of how to use it, exactly what does it mean ?
|
What the chain command does is, it ties itself to a wac command that is directly above it and performs an action (in the seconds inserted) after the previous WAC command.
For example :
if ssnarea(10000,1) and never() then // player in area 1
wave(" wave here")
endif
if chain(15) and never() then
wave(" wave here ")
endif
What this example will do is ... when the player enters area #1 the first wave will play, then 15 seconds later (after the first WAC command has executed) the CHAIN wave will play.