Frictional Games Forum (read-only)

Full Version: "Interacting" with Static Objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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)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)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!
Could you tell me how you changed the bed's specs so that it worked like a level door?
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
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 ?
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*
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)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.
Well i got the bed to change me into my map 2 Big Grin its pretty easy.
Pages: 1 2