Frictional Games Forum
Need easy help with scripting - Printable Version

+- Frictional Games Forum (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: Need easy help with scripting (/thread-16713.html)



Need easy help with scripting - VivaciousWombat - 07-03-2012

I want to make object, like knights, move from one place to another. How I go about doing that is I make the knight appear in different places which I have down. The problem is I don't know how to make the "moved" knights disappear, so I end up with way more than I should. Can someone help me make a script that makes entities such as knights disappear?


RE: Need easy help with scripting - Kreekakon - 07-03-2012

Use this:
Code:
SetEntityActive("knightnamehere", false);

This will make the knight, or any other sort of entity for that matter, disappear. If you need to work it the other way around, change "false" to "true", and your assigned entity will be visible.

Mess around with the "true", and "false" settings to achieve the illusion of moving knights.


RE: Need easy help with scripting - VivaciousWombat - 07-03-2012

Thank you that works perfectly