Skip to main content

The "vngen_get_struct" Function

Syntax#

vngen_get_struct(id, type, [name]);
ArgumentTypeDescription
idreal/stringThe ID of the specific entity to check
typeinteger/macroSets which type of entity to check
[name]stringOptional: Sets the character name to check, if entity is an attachment

Description#

Returns the data structure index of the specified entity of the given ID and type, or 'undefined' if the entity or type does not exist.

See Macros & Keywords for a full list of available entity types.

Example#

var ds_struct = vngen_get_struct("John Doe", vngen_type_char);