restart

From ZDoom Wiki
Jump to: navigation, 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;
}