- Documentation
- Shared functions
- restoreWorldModel
Function
restoreWorldModel
Removes removeWorldModel entries for a model whose sphere touches the given sphere. Without coordinates it removes all entries of that model. It removes the calling resource's own entries first, and other resources' entries only when it has none of its own.
Syntax
bool restoreWorldModel(int model [, float radius = 0, float x = nil, float y = nil, float z = nil, int interior = -1])Arguments
modelint- Model number.
radiusfloat, optional = 0- Radius in metres.
xfloat, optional = nil- Centre X.
yfloat, optional = nil- Centre Y.
zfloat, optional = nil- Centre Z.
interiorint, optional = -1- Interior (compatibility with existing scripts).
Returns
true when something was restored.
Example
restoreWorldModel(1226, 20, 2495, -1665, 13)