Frictional Games Forum (read-only)

Full Version: Remove entitys when picking up an item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Code:
SetEntityActive("name_of_entity", false);
What Your Computer said, use that command after you picked up the key.