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...")
 
m (Arguments: formatting)
Line 5: Line 5:
 
=== Arguments ===
 
=== Arguments ===
  
* Ticks - Number of gameticks to wait. 70 ticks is about 1 second.
+
'''Ticks''' - Number of gameticks to wait. 70 ticks is about 1 second.
  
 
===Example===
 
===Example===

Revision as of 14:41, 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();