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?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Possible to make entities disappear?

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()".

04-29-2011, 10:51 AM
Find


Messages In This Thread
RE: Possible to make entities disappear? - by Kyle - 04-29-2011, 10:51 AM



Users browsing this thread: 1 Guest(s)