Frictional Games Forum (read-only)
Disappearing Objects - 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: Disappearing Objects (/thread-8983.html)



Disappearing Objects - JenniferOrange - 07-06-2011

How do you make objects(entities) disappear when you get near to them? I know it's possible with monsters, using hallucination, but is there a way you can make objects hallucinations? If so, how?

[i.e. You walk up to a door and it disappears in front of you and is replaced by just a blank wall.]




RE: Disappearing Objects - Kyle - 07-06-2011

It can be done with the proper script area and scripting, but can only be used for certain entites. It can be really done with any object if you edit it's properties and type in the model editor.

To set something active:

SetEntityActive("EntityName", true);


RE: Disappearing Objects - MrBigzy - 07-06-2011

SetPropActiveAndFade, or something like that. It will dissolve a prop out after a time that you specify.


RE: Disappearing Objects - Kyle - 07-06-2011

(07-06-2011, 02:52 AM)MrBigzy Wrote: SetPropActiveAndFade, or something like that. It will dissolve a prop out after a time that you specify.

Does this work for all static props? What about entities/objects?


RE: Disappearing Objects - MrBigzy - 07-06-2011

Only for entity type objects I think, not static objects. And probably not enemies either, lol.


RE: Disappearing Objects - Tanshaydar - 07-06-2011

Script functions only works for Entities which are not StaticProp types.


RE: Disappearing Objects - Hardarm - 07-06-2011

like ... ?

Are they almost the same? I don't want to check everytime to the readme Sad

Most used props to fade are slimes and cave in(s)

I think.


RE: Disappearing Objects - Henriksen - 07-06-2011

Its possible to use SetEntityActive with enemies aswell. Thats how they appear if I understood you correctly


RE: Disappearing Objects - JenniferOrange - 07-06-2011

Ah. I see. So I can use SetPropActiveAndFade on something like a door since it's in the entity section, but not a wall because they're in the static objects section? And I'm assuming to make it be replaced by a wall I just hide a wall behind the door, so when the door disappears the wall is seen. I get it now. Smile thanks everyone!