Frictional Games Forum (read-only)
"Interacting" with Static Objects - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: "Interacting" with Static Objects (/thread-5416.html)

Pages: 1 2


"Interacting" with Static Objects - Chilton - 11-12-2010

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


RE: "Interacting" with Static Objects - Hooumeri - 11-12-2010

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


RE: "Interacting" with Static Objects - Chilton - 11-12-2010

(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!


RE: "Interacting" with Static Objects - LoneWolf - 11-15-2010

Could you tell me how you changed the bed's specs so that it worked like a level door?


RE: "Interacting" with Static Objects - Chilton - 11-15-2010

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


RE: "Interacting" with Static Objects - LoneWolf - 11-15-2010

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 ?


RE: "Interacting" with Static Objects - Chilton - 11-15-2010

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*


RE: "Interacting" with Static Objects - house - 11-18-2010

If you just want a message to show up, then you can put a Examine area on the static prop.


RE: "Interacting" with Static Objects - Chilton - 11-19-2010

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


RE: "Interacting" with Static Objects - LoneWolf - 11-19-2010

Well i got the bed to change me into my map 2 Big Grin its pretty easy.