Frictional Games Forum (read-only)
Some entities cannot be hidden? - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Some entities cannot be hidden? (/thread-8064.html)



Some entities cannot be hidden? - Linus Ågren - 05-17-2011

Well, for example, I want to make a bookshelf inactive and then later, put a triggered event to make it active, as if the bookshelf has fallen over. However, I cannot do this with the bookshelf, but with other entities.. it works just fine.

How come?


RE: Some entities cannot be hidden? - Russ Money - 05-17-2011

I think you're right. I couldn't use the standing man statue during a part of my mod. Couldn't get them to go inactive.


RE: Some entities cannot be hidden? - Kyle - 05-17-2011

It doesn't work for all entites.

I had this same problem, so I suggest to use a closet instead of a bookshelf. It worked for me that way. :/


RE: Some entities cannot be hidden? - MrBigzy - 05-17-2011

Some entities, for whatever reason, need to be deactivated at runtime in your script. Like lights. They refuse to go inactive by the level editor. At least for me anyway. :B


RE: Some entities cannot be hidden? - Linus Ågren - 05-17-2011

@Kyle
Problem is, it's in a library, so a closet won't work. Tongue

@MrBigzy
I tried that to. I made a collidebox at the start of the level that set the entity to inactive state and yet, it still appeared in game.


RE: Some entities cannot be hidden? - Tanshaydar - 05-17-2011

You might want to create a new entity using same mesh. If the entity is static prop or so, usual entity functions may not work at all.


RE: Some entities cannot be hidden? - nemesis567 - 05-17-2011

You go to the model editor, open the entity you wish to make disappear, click the edit tab in the top of the window, click user variables and add the collision mesh to be the models col mesh, most cases it is Body_1. Then save that entity with another name and replace that one with the old one.

I've seen a tutorial about that somewhere so you should search before posting.


RE: Some entities cannot be hidden? - Simpanra - 05-17-2011

there is an easier method =) an entity called "secret shelf" looks just like a normal one ^_^


RE: Some entities cannot be hidden? - Kyle - 05-17-2011

(05-17-2011, 10:13 PM)Simpanra Wrote: there is an easier method =) an entity called "secret shelf" looks just like a normal one ^_^

I think I know a way you can make it look like the normal one.

Perhaps setting it with static physics and using SetEntityInteractionDisabled("secret_shelf", true);


RE: Some entities cannot be hidden? - Apjjm - 05-18-2011

entities set as "static object" in the model editor cannot be hidden. The simple fix is to change that setting and save as a new entity.