Skip to main content

The "vngen_event_pause" Function

Syntax#

vngen_event_pause(pause);
ArgumentTypeDescription
pauserealSets a delay in seconds between actions within an event

Description#

Despite its name, vngen_event_pause is an action. By default, all actions within an event are executed simultaneously, but there may be times when it is best for actions to perform asynchronously instead. This script inserts a delay between actions, so that all actions following vngen_event_pause will not be executed until after the delay is complete.

Note that this script is intended for creating asynchronous actions and not consecutive ones. In general, consecutive actions should be separated into multiple events, as they may not behave as expected if they are simply delayed until after previous actions in the same event are complete.

Example#

if vngen_event() {
//Action
vngen_event_pause(1);
//Delayed action
}