Page 1 of 1

How do you create lights?

Posted: Wed Oct 22, 2014 10:48 pm
by ScroLL
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?

Re: How do you create lights?

Posted: Wed Oct 22, 2014 11:02 pm
by NutJob

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?

Posted: Wed Oct 22, 2014 11:25 pm
by ScroLL
Thanks!