How do you create lights?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

How do you create lights?

Post 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?
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: How do you create lights?

Post 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))
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: How do you create lights?

Post by ScroLL »

Thanks!
Post Reply