Frictional Games Forum (read-only)

Full Version: Disappearing Objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.]

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);
SetPropActiveAndFade, or something like that. It will dissolve a prop out after a time that you specify.
(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?
Only for entity type objects I think, not static objects. And probably not enemies either, lol.
Script functions only works for Entities which are not StaticProp types.
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.
Its possible to use SetEntityActive with enemies aswell. Thats how they appear if I understood you correctly
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!