Vital.sandbox
Model

model.is_loaded

Shared

Retrieves whether a model has been loaded into memory


Syntax

local result = model.is_loaded(name)

Parameters

TypeNameDescription
stringnameName of the model to check

Returns

TypeNameDescription
boolresulttrue if the model is loaded, false otherwise

Examples

Check if a model is loaded
engine.print("info", "Model loaded:", model.is_loaded("character"))

On this page