restart

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;
}

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.