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
Script For Activating Point Lights?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#4
RE: Script For Activating Point Lights?

(05-04-2013, 06:04 PM)Kiandra Wrote:
(05-04-2013, 05:57 PM)FurtherGames Wrote:
(05-04-2013, 05:47 PM)Robosprog Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions

Yeah... I used the "void SetLightVisible(string& asLightName, bool abVisible);" command, but it doesn't work.

Make sure you typed in in correctly. If it's still not working, try this:

Keep all the lights active with a radius of 0 and use this function to change the radius to what you want:
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
string& asLightName = "pointlight_whatever number yours is"
float afR = value you have on the red slider, with a decimal (eg 1.0f)
float afG = same as above but for green
float afB = same as above but for blue
float afA = same as above but for alpha
float afRadius = the you want your pointlight to change to (eg 3.0f)
float afTime = time, in seconds, for the change to take place (1.0f is 1 second)

Do you use "SetEntityActive for lamps/candle sticks?
05-04-2013, 06:10 PM
Find


Messages In This Thread



Users browsing this thread: 1 Guest(s)