getLightDirection
Client-side
Server-side
Shared
Pair: setLightDirection
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function returns the direction for a light element.
Syntax
getLightDirection ( )Code Examples
client
function lightDirection () local light = createLight(0, 1, 0, 4) local lx, ly, lz = getLightDirection(light) outputChatBox("light direction: " .. lx .. ", " .. ly .. ", " .. lz)endaddCommandHandler("lightDirection", lightDirection)