Skip to main content

The "vngen_is_option_selected" Function

Syntax#

vngen_is_option_selected(id);
ArgumentTypeDescription
idreal/stringThe option ID to check

Description#

Checks whether or not the specified option is selected (either by mouse/touch or vngen_do_option_select) and returns true or false.

Note that this script is different from vngen_get_option in that it will return true while the option is held down, not just when it is released and activated.

Example#

if (vngen_is_option_selected("choice_no")) {
effect_create_above(ef_ellipse, mouse_x, mouse_y, 2, c_white);
}