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
Some entities cannot be hidden?
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#1
Some entities cannot be hidden?

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?

Creator of The Dark Treasure.
05-17-2011, 12:01 PM
Website Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: Some entities cannot be hidden?

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.

05-17-2011, 12:04 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Some entities cannot be hidden?

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. :/

05-17-2011, 12:05 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#4
RE: Some entities cannot be hidden?

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
(This post was last modified: 05-17-2011, 02:25 PM by MrBigzy.)
05-17-2011, 02:24 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#5
RE: Some entities cannot be hidden?

@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.

Creator of The Dark Treasure.
05-17-2011, 04:23 PM
Website Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Some entities cannot be hidden?

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.

05-17-2011, 04:36 PM
Website Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#7
RE: Some entities cannot be hidden?

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.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 05-17-2011, 07:08 PM by nemesis567.)
05-17-2011, 07:07 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#8
RE: Some entities cannot be hidden?

there is an easier method =) an entity called "secret shelf" looks just like a normal one ^_^
05-17-2011, 10:13 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#9
RE: Some entities cannot be hidden?

(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);

05-17-2011, 11:27 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#10
RE: Some entities cannot be hidden?

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.
05-18-2011, 12:28 AM
Find




Users browsing this thread: 1 Guest(s)