Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] How to make a torch unlightable?
Kiwi2703 Offline
Junior Member

Posts: 27
Threads: 5
Joined: Sep 2012
Reputation: 2
#1
[SOLVED] How to make a torch unlightable?

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
(This post was last modified: 09-07-2012, 09:40 PM by Kiwi2703.)
09-06-2012, 02:48 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: How to make a torch unlightable?

Try using a blockbox.

"What you think is irrelevant" - A character of our time

A Christmas Hunt
09-06-2012, 03:02 PM
Find
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#3
RE: How to make a torch unlightable?

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.

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 09-06-2012, 03:08 PM by Kreekakon.)
09-06-2012, 03:02 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: How to make a torch unlightable?

How about
SetEntityInteractionDisabled(string& asName, bool abDisabled);
Disallows interaction with an entity.

Trying is the first step to success.
09-06-2012, 03:25 PM
Find
Kiwi2703 Offline
Junior Member

Posts: 27
Threads: 5
Joined: Sep 2012
Reputation: 2
#5
RE: How to make a torch unlightable?

(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
09-06-2012, 04:21 PM
Find




Users browsing this thread: 2 Guest(s)