Frictional Games Forum (read-only)
Custom entity not disabling - 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: Custom entity not disabling (/thread-10210.html)



Custom entity not disabling - Homicide13 - 09-07-2011

So I made a custom entity ( http://www.mediafire.com/?9440u4uvdsnp53z ) that's just supposed to be an apple that's re-skinned with the blood pool decal texture so that I could use it as an enable-able decal for other entities (in the same way the ptest berral02 is used). However, for some reason, even though the "enabled" check box isn't checked in my map editor, the entity still appears. Does anybody know why it is doing this?

EDIT: and just moments from posting this, I get it to work by changing the item type from "static object" to "moveobject." I have no idea why it works now... anybody else know? >.<


RE: Custom entity not disabling - MegaScience - 09-07-2011

Have you tried SetEntityActive("bloodname", false);?



RE: Custom entity not disabling - Acies - 09-07-2011

Yes. By setting the object to "static object" it becomes "undisableable". However, you can circumvent this by setting it to "Object" ---> (and then in another drop down menu) "Static object".