Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disappearing Objects
Author Message
JenniferOrange Offline
Senior Member

Posts: 428
Joined: Jun 2011
Reputation: 33
Post: #1
Exclamation Disappearing Objects
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.]

[Image: button.png]
07-06-2011 02:16 AM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #2
RE: Disappearing Objects
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);

(This post was last modified: 07-06-2011 02:23 AM by Kyle.)
07-06-2011 02:23 AM
Find all posts by this user Quote this message in a reply
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #3
RE: Disappearing Objects
SetPropActiveAndFade, or something like that. It will dissolve a prop out after a time that you specify.
07-06-2011 02:52 AM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #4
RE: Disappearing Objects
(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?

07-06-2011 02:54 AM
Find all posts by this user Quote this message in a reply
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #5
RE: Disappearing Objects
Only for entity type objects I think, not static objects. And probably not enemies either, lol.
07-06-2011 03:55 AM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #6
RE: Disappearing Objects
Script functions only works for Entities which are not StaticProp types.

07-06-2011 11:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Hardarm Offline
Senior Member

Posts: 717
Joined: Apr 2011
Reputation: 35
Post: #7
RE: Disappearing Objects
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.

07-06-2011 12:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
teddifisk Offline
Senior Member

Posts: 303
Joined: Dec 2010
Reputation: 2
Post: #8
RE: Disappearing Objects
Its possible to use SetEntityActive with enemies aswell. Thats how they appear if I understood you correctly

07-06-2011 12:22 PM
Find all posts by this user Quote this message in a reply
JenniferOrange Offline
Senior Member

Posts: 428
Joined: Jun 2011
Reputation: 33
Post: #9
RE: Disappearing Objects
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!

[Image: button.png]
07-06-2011 04:04 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)