Frictional Games Forum (read-only)
[SCRIPT] Wardrobe Doors - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Wardrobe Doors (/thread-25659.html)

Pages: 1 2


Wardrobe Doors - SuavePuppy - 07-11-2014

Would it be at all possible to make a wardrobe's doors fall off of their hinges and fall to the ground when interacted with? I've seen swing doors fall to the ground when interacted with, so how would one go about separating the wardrobes doors into their own entity models and applying that effect?

Thanks in advance


RE: Wardrobe Doors - Mudbill - 07-11-2014

The process is a bit lengthy but it's very much possible.

You need to open the wardrobe's .dae model in a 3D editor like Maya, then export the main closet model as its own file, as well as the doors in their own file. It should work fine to have both doors in the same model.

Then you need to make 2 different entities, one for the doorless wardrobe and one for the doors. The doorless one can be static. Just apply a collision box and it's done. The doors need one collision box each, assigned to their own submesh, and given a mass. Set the object type to Object > Grab if you wanna be able to pick up the doors separately and throw them around.


RE: Wardrobe Doors - SuavePuppy - 07-11-2014

Oh snap it's Mudbill, I've been watching all of your videos Tongue Thanks again for those and your response. One more thing: When I export my .dae file from Blender and try to import the mesh into the Model Editor, nothing shows up. What am I doing wrong?


RE: Wardrobe Doors - Rapture - 07-11-2014

When your saving out your .DAE in Blender. In the left side, their is a Tab "Export COLLADA".

Below it, check "Selection Only" and "Include Material Textures".


RE: Wardrobe Doors - SuavePuppy - 07-11-2014

Do I need to be doing something involving textures and materials when inside Blender? No matter what I've tried, the mesh either doesn't show up in HPL or is just invisible.


RE: Wardrobe Doors - Daemian - 07-11-2014

Wait, if you just want the doors to fall when you interact with them, you can just remove the hinges from the model.
Then all you gotta do is set the wardrobe static. When the players touches it, you remove the static state so it drops the doors.


RE: Wardrobe Doors - SuavePuppy - 07-11-2014

Well that worked beautifully, I just set it to a grab object and Bam. Thank you all so much for your help, I imagine I'll be back here soon enough <3


RE: Wardrobe Doors - Mudbill - 07-11-2014

Oh yeah, I guess I was overcomplicating it a bit xP

Forgot that would work the same. Since they're all already submeshes, the can collide with each other and act separately.

I do think the only issue is that if you stand in the closet when you grab the door, you'll fall through the collision box of the closet itself.


RE: Wardrobe Doors - DnALANGE - 07-11-2014

If you want. you can share the idea \ entite?
Be free to upoad it here for the ones who would like to use this feature.
ONLY if you want to share it offcourse.


RE: Wardrobe Doors - SuavePuppy - 07-11-2014

As you can tell I'm relatively new here, how would I share it?