The "vngen_get_prop" Function

Syntax#

vngen_get_prop(id, type, [name], prop);
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
propenumThe property to check, as an enumerator

Description#

Returns the value of the specified property of the given entity, or 'undefined' if the entity or property does not exist.

Properties are written with the syntax "prop._property". A full list of valid properties can be found by editing sys_vngen_config. However, note that not all entities possess all available properties.

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

Example#

var john_x = vngen_get_prop("John Doe", vngen_type_char, prop._x);