Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disappearing Objects
Author Message
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#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.]


Ba-da bing, ba-da boom.
07-06-2011, 02:16 AM
Find Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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 Reply
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#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 Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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 Reply
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#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 Reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Disappearing Objects

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

07-06-2011, 11:44 AM
Website Find Reply
Hardarm Offline
Posting Freak

Posts: 890
Threads: 39
Joined: Apr 2011
Reputation: 43
#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.

listen to boards of canada
07-06-2011, 12:15 PM
Website Find Reply
teddifisk Offline
Senior Member

Posts: 303
Threads: 69
Joined: Dec 2010
Reputation: 2
#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 Reply
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#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!

Ba-da bing, ba-da boom.
07-06-2011, 04:04 PM
Find Reply




Users browsing this thread: 1 Guest(s)