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?
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#3
RE: Script For Activating Point Lights?

(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)

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 05-04-2013, 06:05 PM by CarnivorousJelly.)
05-04-2013, 06:04 PM
Find


Messages In This Thread



Users browsing this thread: 2 Guest(s)