Frictional Games Forum (read-only)
How would I go about doing this? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: How would I go about doing this? (/thread-7944.html)



How would I go about doing this? - tyranius - 05-11-2011

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?


RE: How would I go about doing this? - Russ Money - 05-11-2011

(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);


RE: How would I go about doing this? - Tanshaydar - 05-11-2011

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


RE: How would I go about doing this? - tyranius - 05-11-2011

Thanks for the help!