self:scale_global
Client
Scales the spot light in world space by the given factor
Syntax
local status = self:scale_global(
scale
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | scale | Scale factor to apply in world space as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.spot.create()
entity:scale_global({2, 2, 2})