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
Activate/deactivate lights
Magzard Offline
Junior Member

Posts: 11
Threads: 4
Joined: Feb 2013
Reputation: 0
#1
Activate/deactivate lights

Hello!

Can anyone tell me witch script command do i use to acticate/deactivate lights(Box,point,spot)?

Thanks
02-25-2013, 11:26 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Activate/deactivate lights

The function you're looking for:

SetLightVisible(string& asLightName, bool abVisible);

asLightName = name of the light
abVisible = whether or not its visible (true/false)

Example:


void function
{
SetLightVisible("spotlight_1", false);
}



Hope that helped

I rate it 3 memes.
(This post was last modified: 02-25-2013, 11:39 PM by Adny.)
02-25-2013, 11:39 PM
Find
Magzard Offline
Junior Member

Posts: 11
Threads: 4
Joined: Feb 2013
Reputation: 0
#3
RE: Activate/deactivate lights

(02-25-2013, 11:39 PM)Adny Wrote: The function you're looking for:

SetLightVisible(string& asLightName, bool abVisible);

asLightName = name of the light
abVisible = whether or not its visible (true/false)

Example:


void function
{
SetLightVisible("spotlight_1", false);
}



Hope that helped

Thanks mate, i searched this one for hours without any outcome. Smile
02-26-2013, 04:13 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#4
RE: Activate/deactivate lights

for all scripts: http://wiki.frictionalgames.com/hpl2/amn..._functions

use ctrl+f or F3 to browse the whole page.

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-26-2013, 05:19 PM
Find




Users browsing this thread: 1 Guest(s)