Frictional Games Forum (read-only)
Remove entitys when picking up an item - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Remove entitys when picking up an item (/thread-10678.html)



Remove entitys when picking up an item - lolopon - 10-09-2011

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?



RE: Remove entitys when picking up an item - Your Computer - 10-09-2011

Code:
SetEntityActive("name_of_entity", false);



RE: Remove entitys when picking up an item - SonOfLiberty796 - 10-10-2011

What Your Computer said, use that command after you picked up the key.