Frictional Games Forum (read-only)

Full Version: How would I go about doing this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)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);
Also SetLightVisible(string& asLightName, bool abVisible); would work.
Thanks for the help!