Model
self:set_scale
SharedSets the local scale of the model
Syntax
local status = self:set_scale(
scale
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | scale | Scale to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
entity:set_scale({1, 1, 1})