Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Lamp (Not Light) Colour Through Script
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Change Lamp (Not Light) Colour Through Script

I'm doing this from memory as I'm getting ready to walk out the door and it's been a little while since I've done this effect, so if it isn't quite right, I'll take another stab at it when I get home from work. I think it's something along these lines, though:

iLuxEntity @lamp = Map_GetEntity("lamp"); // The name of the entity in the level editor
iLight @light = lamp.GetLightFromName("light"); // The name of the attached light in the model editor
light.SetIlluminationColor(cColor(0.0, 0.0, 1.0)); // RGB values, 0-1 scale

10-29-2018, 04:49 PM
Find


Messages In This Thread
RE: Change Lamp (Not Light) Colour Through Script - by Abion47 - 10-29-2018, 04:49 PM



Users browsing this thread: 1 Guest(s)