Difference between revisions of "ScriptDelay"

From Amulets & Armor Wiki
Jump to: navigation, search
(Created page with "'''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 secon...")
(No difference)

Revision as of 14:39, 5 March 2014

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();