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
Light's wont deactivate
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#1
Light's wont deactivate

When i place a light in the level editor and uncheck the deactivate box the light will go out. In the level editor.

However, when i go in game the point/spot/box light is still activated. I tried deactivating them by script and they perist to say "screw you im a light and im'a be on"

07-04-2013, 03:16 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Light's wont deactivate

Yea the lights won't deactivate.

Use

Spoiler below!

void SetLightVisible(string& asLightName, bool abVisible);

asLightName - Internal name (the name of the light)
abVisible - Determines the state of light (On or off, true or false respectively)



"Veni, vidi, vici."
"I came, I saw, I conquered."
07-04-2013, 03:19 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#3
RE: Light's wont deactivate

Wrong forum section~ Moooved.
07-04-2013, 03:41 PM
Find
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#4
RE: Light's wont deactivate

I have this same problem in my editor, and "SetLightVisable" doesn't do anything either. However I've had some success with
Spoiler below!

FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);



Changes the properties of a light.




asLightName - internal name


afR - red value


afG - green value


afB - blue value


afA - alpha value


afRadius - radius of the light. -1 means keeping the radius


afTime - time in seconds until change is done
Just set all the colors to 0, then run the script again and set them to what you want when you want the light "on"

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
07-06-2013, 03:18 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#5
RE: Light's wont deactivate

(07-06-2013, 03:18 AM)DeAngelo Wrote: I have this same problem in my editor, and "SetLightVisable" doesn't do anything either. However I've had some success with
Spoiler below!

FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);



Changes the properties of a light.




asLightName - internal name


afR - red value


afG - green value


afB - blue value


afA - alpha value


afRadius - radius of the light. -1 means keeping the radius


afTime - time in seconds until change is done
Just set all the colors to 0, then run the script again and set them to what you want when you want the light "on"

Ahhh haha thankyou! And as for the section moving thankyou!!!

07-06-2013, 05:08 AM
Find




Users browsing this thread: 1 Guest(s)