Frictional Games Forum (read-only)

Full Version: [SOLVED] How to make a torch unlightable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there Smile
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 Big Grin )
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! Smile
Try using a blockbox.
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.
How about
SetEntityInteractionDisabled(string& asName, bool abDisabled);
Disallows interaction with an entity.
(09-06-2012, 03:25 PM)beecake Wrote: [ -> ]How about
SetEntityInteractionDisabled(string& asName, bool abDisabled);
Disallows interaction with an entity.
That was very helpful! thanks, it works! Smile