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
How can i deactivate light when i pick up a key.
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#1
How can i deactivate light when i pick up a key.

When i pick up a key, a light gets inactive.
How can i do that? I'm a noob Big Grin
[Sorry for my bad english, i don't have any ideas how to explain it. ^^']
(This post was last modified: 12-02-2011, 07:29 PM by GillFrog.)
12-02-2011, 06:43 PM
Website Find
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#2
RE: How can i deactivate light when i pick up a key.

SetLightVisible("your light name here", false);

Smile

When Life No Longer Exists
Full-conversion mod
12-02-2011, 08:19 PM
Website Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: How can i deactivate light when i pick up a key.

A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox


Current Project
Forgotten
12-02-2011, 09:01 PM
Find
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#4
RE: How can i deactivate light when i pick up a key.

(12-02-2011, 09:01 PM)GreyFox Wrote: A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox
Thanks for the reply.


12-03-2011, 01:04 AM
Website Find
CorinthianMerchant Offline
Posting Freak

Posts: 2,876
Threads: 84
Joined: Nov 2011
Reputation: 131
#5
RE: How can i deactivate light when i pick up a key.

(12-02-2011, 09:01 PM)GreyFox Wrote: A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox


Why isn't the key mentioned in the script?



Still hasn't gotten over the loss of wubwub...
01-16-2012, 07:02 PM
Find




Users browsing this thread: 1 Guest(s)