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


Post Reply 
 
Thread Rating:
  • 4 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Interacting" with Static Objects
Author Message
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #1
"Interacting" with Static Objects

If this has been asked before, the search tool denies it... By not saying anything, hence this note.

Moving on
Is it possible to make it possible to interact with a static object, such as in this case, a bed?

As in, if you left click on it, something happens.

Thanks in advance
11-12-2010 02:26 PM
Find all posts by this user Quote this message in a reply
Hooumeri Offline
Member

Posts: 57
Joined: Oct 2010
Reputation: 0
Post: #2
RE: "Interacting" with Static Objects

(11-12-2010 02:26 PM)Chilton Wrote:  If this has been asked before, the search tool denies it... By not saying anything, hence this note.

Moving on
Is it possible to make it possible to interact with a static object, such as in this case, a bed?

As in, if you left click on it, something happens.

Thanks in advance

Isnt bed an entity?

What ever.. You can make static objects entities by changing it's properties in the model editor. You can make it a object, entity or static object for example.
11-12-2010 03:15 PM
Find all posts by this user Quote this message in a reply
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #3
RE: "Interacting" with Static Objects

(11-12-2010 03:15 PM)Hooumeri Wrote:  
(11-12-2010 02:26 PM)Chilton Wrote:  If this has been asked before, the search tool denies it... By not saying anything, hence this note.

Moving on
Is it possible to make it possible to interact with a static object, such as in this case, a bed?

As in, if you left click on it, something happens.

Thanks in advance

Isnt bed an entity?

What ever.. You can make static objects entities by changing it's properties in the model editor. You can make it a object, entity or static object for example.

Im trying this now - If it works, ill edit this reply -- Also, it is an entity, but clicking on it does nothing - Making it clickable is closer to my goal; Now to the model editor with me

EDIT: The bed is now technically a level door, and works perfectly. Thankyou kindly!
(This post was last modified: 11-12-2010 03:21 PM by Chilton.)
11-12-2010 03:18 PM
Find all posts by this user Quote this message in a reply
LoneWolf Offline
Senior Member

Posts: 308
Joined: Sep 2010
Reputation: 0
Post: #4
RE: "Interacting" with Static Objects

Could you tell me how you changed the bed's specs so that it worked like a level door?
11-15-2010 04:10 PM
Find all posts by this user Quote this message in a reply
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #5
RE: "Interacting" with Static Objects

Sure - I opened it in the Model Editor, and changed its settings to Level Door, saved the new file in my custom story, and added a line to LevelEditor.cfg so that it would accept the file;

Now i have a small problem were clicking the bed does nothing, but that is likely because it hasnt been linked to a new map yet.

If that is not the case, ill have to manually add some collision boxes to it or something
11-15-2010 04:53 PM
Find all posts by this user Quote this message in a reply
LoneWolf Offline
Senior Member

Posts: 308
Joined: Sep 2010
Reputation: 0
Post: #6
RE: "Interacting" with Static Objects

Yes i was wondering that myself. I have a hatch door and it doe snothign when i click on it, so must only work when you script it to teleport you?

Anyway thanks, what was the line you added in to the level editor.cfg ?
(This post was last modified: 11-15-2010 05:01 PM by LoneWolf.)
11-15-2010 05:01 PM
Find all posts by this user Quote this message in a reply
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #7
RE: "Interacting" with Static Objects

ExtraStaticObjectDir1=*Insert the path to the file which contains the new entity here* />

Place this next to the directories string.
And i think you remove the /> from the end of said directories string, as it ends the whole line.



Im sure one of us will work out how to fix the whole clicking thing
*Starts playing with collision boxes*
11-15-2010 05:05 PM
Find all posts by this user Quote this message in a reply
house Offline
Member

Posts: 195
Joined: Oct 2010
Reputation: 1
Post: #8
RE: "Interacting" with Static Objects

If you just want a message to show up, then you can put a Examine area on the static prop.
11-18-2010 10:39 PM
Find all posts by this user Quote this message in a reply
Chilton Offline
Member

Posts: 138
Joined: Sep 2010
Reputation: 0
Post: #9
RE: "Interacting" with Static Objects

(11-18-2010 10:39 PM)house Wrote:  If you just want a message to show up, then you can put a Examine area on the static prop.
I know that, but what i want it to do is a ChangeMap function.
11-19-2010 04:37 AM
Find all posts by this user Quote this message in a reply
LoneWolf Offline
Senior Member

Posts: 308
Joined: Sep 2010
Reputation: 0
Post: #10
RE: "Interacting" with Static Objects

Well i got the bed to change me into my map 2 Big Grin its pretty easy.
11-19-2010 01:51 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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