Thread: WAC tutorial
View Single Post
  #5  
Old 08-27-2009, 06:24 PM
dave61 is offline dave61
dave61's Avatar
I.C.U.

Join Date: Jul 2005
Location: Here & There
Posts: 2,155

Send a message via Yahoo to dave61
Quote:
Originally Posted by gorlosky View Post
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.
__________________

Last edited by dave61; 08-27-2009 at 06:45 PM. Reason: corrected mistyping mistake
Reply With Quote