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
Making a trigger to turn lights off?
Neatherblade Offline
Junior Member

Posts: 19
Threads: 5
Joined: Jan 2011
Reputation: 0
#1
Making a trigger to turn lights off?

Have been looking on the wiki for a function to turn the lights of when walking over a trigger, have only found this one SetLampLit, but i have no success to make it work.

void SetLampLit(string& asName, bool abLit, bool abEffects);

Or do i use something else?
01-06-2011, 06:22 PM
Find
Som1Lse Offline
Member

Posts: 183
Threads: 9
Joined: Sep 2010
Reputation: 0
#2
RE: Making a trigger to turn lights off?

It would help if you posted your script.
01-06-2011, 06:36 PM
Website Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#3
RE: Making a trigger to turn lights off?

void SetLampLit(string& asName, bool abLit, bool abEffects);

asName = name of the lamp entity
abLit = boolean (true / false) if the lamp should be lit or not
abEffects = another boolean if the engine should use effects to light the lamp (basically, this means you will see the flame appear and the shine, false would just switch it into the lit-state, use it when the player can see the lamp)


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
01-06-2011, 06:40 PM
Find
adamhun Offline
Junior Member

Posts: 34
Threads: 4
Joined: Dec 2010
Reputation: 0
#4
RE: Making a trigger to turn lights off?

It only turns off lamps, not lights (for me at least). I tried SetEntityActive too, but that wasn't working either.

-Retired-
01-06-2011, 07:17 PM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#5
RE: Making a trigger to turn lights off?

For lights use SetLightVisible.


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
01-06-2011, 07:30 PM
Find
adamhun Offline
Junior Member

Posts: 34
Threads: 4
Joined: Dec 2010
Reputation: 0
#6
RE: Making a trigger to turn lights off?

ahhh. thanks ^^

-Retired-
01-06-2011, 09:00 PM
Find




Users browsing this thread: 1 Guest(s)