- Documentation
- Shared functions
- getElementAttachedOffsets
Function
getElementAttachedOffsets
Returns the attached element's offset and rotation relative to the one it is attached to.
Syntax
float getElementAttachedOffsets(element theElement)Arguments
theElementelement- The attached element.
Returns
x, y, z, rx, ry, rz.
Example
local x, y, z = getElementAttachedOffsets(light)
setElementAttachedOffsets(light, x, y, z + 0.1)