switching on ambient lights...

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
azidahaka
Posts: 91
Joined: Fri Apr 13, 2012 9:48 pm

switching on ambient lights...

Post by azidahaka »

Any idea on how to trigger light? like you step on something and light turns on
User avatar
Kuningas
Posts: 268
Joined: Wed Apr 11, 2012 10:29 pm
Location: Northern Finland

Re: switching on ambient lights...

Post by Kuningas »

For light source objects, from the scripting reference:
"
LightSource:activate()
Turns on the light source.

LightSource:deactivate()
Turns off the light source.
"

You can do this just by adding a button or a lever or a pressure plate and connecting it to the light source in the editor, so no actual scripting is required.

But I suppose it is a bit different for completely scripted lights, not light-source objects. Someone probably knows them well around here, though.
BASILEUS
Post Reply