Hi people, I’m pretty new with LUA. I’m modifying an old stealth addon, and I need to get the amount of light that a player model has. The addon was using render.GetLightColor( Vector position ), which returns the light color of a point, but most of the time the player has a higher light level than what this function returns. I wonder if there’s a function that returns the light color of an entity model instead of a point. Is that possible?
Bump? I just noticed there are two more functions, render.ComputeLighting and render.ComputeDynamicLighting, but I have no idea of how to use them.