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


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

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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
Hooumeri Offline
Member

Posts: 57
Threads: 11
Joined: Oct 2010
Reputation: 0
#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
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#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
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#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
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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
house Offline
Member

Posts: 195
Threads: 11
Joined: Oct 2010
Reputation: 1
#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
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#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
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)