Hi, the new feature ent_nextlight should to work, but have not tested yet.

Note:
"The ent_nextlight function now stores light info in the hit struct, and can also detect WED-placed lights."

"Returns
ENTITY* - Pointer to the light emitting entity, or A7.82 level_ent for a level-placed dynamic light or the sun, or NULL when no more light was in range."


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P