![]() |
[SCRIPT] [SOLVED] How to make a torch unlightable? - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] [SOLVED] How to make a torch unlightable? (/thread-18180.html) |
[SOLVED] How to make a torch unlightable? - Kiwi2703 - 09-06-2012 Hello there ![]() I am currently working on my level and I came to a point where I don't know how to script something (not the first and the last time though ![]() The thing is, I let the player use a bucket of water to put out a torch (I already did that script), but I don't want the player to be able to light the torch again. So, how can I make it unlightable after putting it out? Thanks! ![]() RE: How to make a torch unlightable? - i3670 - 09-06-2012 Try using a blockbox. RE: How to make a torch unlightable? - Kreekakon - 09-06-2012 You can open the model editor, go to user defined variables, and change the main setting you find there depending on your needs, StaticProp, or otherwise. As long as it's not a lamp, it cannot not be lit by the player, or prompted for tinderboxes when approached. Set it active when your previous "lamp" is put out. RE: How to make a torch unlightable? - FlawlessHappiness - 09-06-2012 How about SetEntityInteractionDisabled(string& asName, bool abDisabled); Disallows interaction with an entity. RE: How to make a torch unlightable? - Kiwi2703 - 09-06-2012 (09-06-2012, 03:25 PM)beecake Wrote: How aboutThat was very helpful! thanks, it works! ![]() |