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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove entitys when picking up an item
lolopon Offline
Junior Member

Posts: 10
Threads: 5
Joined: Oct 2011
Reputation: 0
#1
Remove entitys when picking up an item

Hi!

So, i have a closet that i have placed some wooden boards on to make it look like some one have nailed it shut.
Now i want thoose boards to be removed when i pick up a key so you can enter the closet.
Is there a script to remove entities when picking up an item or colliding with an area?
10-09-2011, 05:21 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Remove entitys when picking up an item

SetEntityActive("name_of_entity", false);

Tutorials: From Noob to Pro
10-09-2011, 05:53 PM
Website Find
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#3
RE: Remove entitys when picking up an item

What Your Computer said, use that command after you picked up the key.
10-10-2011, 11:21 PM
Find




Users browsing this thread: 1 Guest(s)