getlightname
VEX function
Returns the name of the current light when called from within an illuminance loop, or converts an integer light ID into the light’s name.
Contexts: fog, photon, surface
See also: illuminance, getlights, getphotonlight, intersect_lights
-
string getlightname()Returns the name of the current light when called from within an illuminance loop.
-
string getlightname(lightid)Returns the name of the light referred to by the given integer light ID. Integer light IDs are used by some low-level VEX functions instead of strings for efficiency.