The "vngen_code_execute_ext" Function

Syntax

vngen_code_execute_ext()
ArgumentTypeDescription
N/AN/ANo arguments

Description

Executes arbitrary code as an action in the context of Quantum events. This can be anything, but be aware that code executed with this function will be performed only once when the containing event first becomes active.

This script should always be run as an if statement with the code to execute inside.

While this function may appear identical to vngen_code_execute, it comes with one critical difference: code will always be re-executed during vngen_goto event skip operations.

Example

vngen_event() {
if (vngen_code_execute_ext()) {
my_var += 1;
}
}