Frictional Games Forum (read-only)
How to combine Entities? - 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: How to combine Entities? (/thread-11832.html)



How to combine Entities? - Vipes - 12-13-2011

I need to somehow combine a few entities together, a bookshelf and its row of books.

If not, has someone made an entity of a shelf full of books?



RE: How to combine Entities? - Khyrpa - 12-13-2011

(12-13-2011, 08:11 PM)Vipes Wrote: I need to somehow combine a few entities together, a bookshelf and its row of books.

If not, has someone made an entity of a shelf full of books?
select all the stuff you want to duplicate, then press B in level editor. That way when you click any of those they all get selected.

Making all bookshelves like that doesn't look good though.



RE: How to combine Entities? - nemesis567 - 12-13-2011

If you want it to become one only mesh you will have to import both models into a compatible 3D software, like Maya, and then edit the meshes and merge them together, before re-exporting them into Amnesia.

Otherwise you can use what Khyrpa mentioned above.



RE: How to combine Entities? - Statyk - 12-14-2011

(12-13-2011, 08:15 PM)nemesis567 Wrote: If you want it to become one only mesh you will have to import both models into a compatible 3D software, like Maya, and then edit the meshes and merge them together, before re-exporting them into Amnesia.

Otherwise you can use what Khyrpa mentioned above.
lol thats like telling a person to cut through a backyard to get to another street, or make a 1 mile U-turn. derp. XD





RE: How to combine Entities? - nemesis567 - 12-14-2011

Not exactly. It depends on what you're trying to do. Many things would require that to be one only mesh.



RE: How to combine Entities? - Vipes - 12-14-2011

(12-14-2011, 01:45 AM)nemesis567 Wrote: Not exactly. It depends on what you're trying to do. Many things would require that to be one only mesh.
A broken doorway leads you to a hallway full of bookshelves; stacked to the brim with books. You walk down, the candles behind you blow out as the first two bookshelves fall behind you. You start to run, they fall faster, almost seemingly like they want to crush you out of your very existence. At the end of the hall there is salvation, a door. You open the door and rush inside as the last bookshelf falls.



RE: How to combine Entities? - nemesis567 - 12-14-2011

To create such an effect, with accurate precision you'd need to use a specific entity(MoveObject type or Object type with hinges). If you want books to fall from shelves you should use Khyrpa's way after you create that same entity. There are easier ways to do this, although with not so much precision.



RE: How to combine Entities? - Vipes - 12-14-2011

(12-14-2011, 02:00 AM)nemesis567 Wrote: To create such an effect, with accurate precision you'd need to use a specific entity. If you want books to fall from shelves you should use Khyrpa's way after you create that same entity.
I dont want the boos to fall, I want the whole thing to.

And I tried to do it like Khyrpa said. It's not working for me, it still wont combine.





RE: How to combine Entities? - nemesis567 - 12-14-2011

What I mean is. If you want the books to fall from the shelves along with the shelves has physics you should use Khyrpas way. Otherwise, if you want the books to fall glued to the shelves you'll probably have to use the Maya way.

Just select everything in your bookshelf including itself and press the B key.



RE: How to combine Entities? - Your Computer - 12-14-2011

Making an entire book shelf fall with all of its contents has nothing to do with combining objects. The easiest way to make a book shelf fall with all of its contents is to make all the items on the shelves non-static entities. Then you put a script area at the foot of the shelf. The script area will be used to rotate the book shelf around the area in hopes of creating a fall down effect. Then you use RotatePropToSpeed on the shelf, passing in the area that is at the foot of the shelf. Note the book shelf might also need to be made an entity if it isn't already.