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
MapleLeaf Offline
Junior Member

Posts: 6
Threads: 1
Joined: Oct 2018
Reputation: 0
#3
RE: Change Lamp (Not Light) Colour Through Script

(10-29-2018, 04:49 PM)Abion47 Wrote:
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

Okay, I've just tested it today and sad to say it didn't work. I only added the script you gave to a lever and made two if-statements, one for red and the other white.

Also,

// The name of the attached light in the model editor
You mean in the level editor, right? Just making sure Tongue
10-30-2018, 01:56 PM
Find


Messages In This Thread
RE: Change Lamp (Not Light) Colour Through Script - by MapleLeaf - 10-30-2018, 01:56 PM



Users browsing this thread: 1 Guest(s)