In Grimrock 1 you could create an "fx" entity and call setLight() on it.
My guess is that the equivalent in Grimrock 2 to the "fx" entity is either the "dummy_light" or "particle_system" entity. dummy_light and particle_system don't seem to have a light component but after some testing they do have a particle component. For example:
dummy_light.particle:
But the setLight() function doesn't seem to work on the particle component. Maybe there's another one I should be using?
Can someone point me in the right direction?
How do you create lights?
Re: How do you create lights?
Code: Select all
spawn("castle_ceiling_light", 1, 7, 14, 0, 0, "lightDelta1")
lightDelta1.particle:disable()
lightDelta1.light:setColor(vec(0,1,0))
Re: How do you create lights?
Thanks!