The "vngen_code_execute" Function

Syntax

vngen_code_execute()
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_ext, it comes with one critical difference: code is prevented from being re-executed during vngen_goto event skip operations.

Example

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