restart

From ZDoom Wiki
Revision as of 11:49, 30 August 2014 by Cpt. Carmack (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
restart;

Usage

restart is a function in ACS to restart a running script. You will need to have at least one delay in the script or you will get the runaway error, unless it only executes a certain number of times.

Examples

This script will give the player a health bonus every 200 tics.

Script 1 ENTER
{
   GiveInventory("HealthBonus",1);
   Delay(200);
   restart;
}