ScriptDelay

From Amulets & Armor Wiki
Revision as of 21:27, 17 October 2016 by PeeWeeRotA (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delay( Ticks )

Pauses execution of the current script until the timeout is reached.

Arguments

Ticks - Number of gameticks to wait. 70 ticks is about 1 second.

Example

21:     // open middle door
   Block(Block7);
   SlideCeilingNice(165,0,120,50,-1);
   AreaSound(5003, 24, 931, 500, 255);
   Delay(90);
   SlideCeilingNice(165,0,0,50,-1);
   AreaSound(5003, 24, 931, 500, 255);
   Delay(70);
   Unblock(Block7);
   End();



Back to Scripting Main Page