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
Possible to make entities disappear?
genmills Offline
Junior Member

Posts: 47
Threads: 7
Joined: Mar 2011
Reputation: 0
#3
RE: Possible to make entities disappear?

(04-29-2011, 10:51 AM)Kyle Wrote: I had the same problem when it came to one of my scripts. I wanted the player to pull down a lever and for the secret door to open. I used a closet_metal to block the secret room. I would set one of the closets act and the other closet unactive. It worked, but I noticed that it doesn't work for all objects. I think I know how to help you in this situation. You can try different paintings like the ones that can be taken off the wall and use this code:

SetEntityInteractionDisabled("painting1", true);
SetEntityInteractionDisabled("painting2", true);

You can put these in your "void OnStart()".

Ok, thanks! I'll give it a shot...
04-29-2011, 04:44 PM
Find


Messages In This Thread
RE: Possible to make entities disappear? - by genmills - 04-29-2011, 04:44 PM



Users browsing this thread: 1 Guest(s)