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 would I go about doing this?
tyranius Offline
Junior Member

Posts: 23
Threads: 6
Joined: May 2011
Reputation: 0
#1
How would I go about doing this?

In my map, there's a lantern inside a display case and I created a spotlight to give the effect that the lantern is on. The player must use something to break the display case and get the lantern... So, when the player picks up the lantern, I want the spotlight and the point light in the room to disappear.

How do I script that?
05-11-2011, 05:58 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: How would I go about doing this?

(05-11-2011, 05:58 PM)tyranius Wrote: In my map, there's a lantern inside a display case and I created a spotlight to give the effect that the lantern is on. The player must use something to break the display case and get the lantern... So, when the player picks up the lantern, I want the spotlight and the point light in the room to disappear.

How do I script that?

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

05-11-2011, 06:02 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#3
RE: How would I go about doing this?

Also SetLightVisible(string& asLightName, bool abVisible); would work.

05-11-2011, 07:50 PM
Website Find
tyranius Offline
Junior Member

Posts: 23
Threads: 6
Joined: May 2011
Reputation: 0
#4
RE: How would I go about doing this?

Thanks for the help!
05-11-2011, 08:29 PM
Find




Users browsing this thread: 1 Guest(s)