The "vngen_event_get_index" Function

Syntax

vngen_event_get_index([label]);
ArgumentTypeDescription
[label]stringOptional: The label of the event to get index of

Description

Returns the numeric ID of the current active event, or -1 if VNgen is not initialized in the running object.

Can also be used to return the numeric index of an event by label, if any is supplied.

Example

if (vngen_event_get_index() != -1) {
draw_text(x, y, string(vngen_event_get_index()));
}