Restart

From ZDoom Wiki

Jump to: navigation, search

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 a Runaway script error.

Example

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

Script 1 ENTER
{
   GiveInventory("HealthBonus",1);
   Delay(200);
   Restart;
}
Personal tools