self:get_global_position
Client
Retrieves the global world-space position of the area light
Syntax
local position = self:get_global_position()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | position | Current global world-space position as {x, y, z} |
Examples
local entity = light.area.create()
local position = entity:get_global_position()
core.engine.print("info", "Area light position:", util.table.unpack(position))