[SCRIPT] Lever pushing a bookshelf that has books in it - 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] Lever pushing a bookshelf that has books in it (/thread-12416.html) Pages:
1
2
|
Lever pushing a bookshelf that has books in it - LiVam - 01-07-2012 Hey guys, I am trying to make a secret door bookshelf that is pushed by a lever. And that has books in it. I've managed to make the lever push the shelf, but I'm having an issue with the books contained in it. If I use "book_row" it freezes in the air, since it is a static object. If I use regular "book"s, the shelf looks boring . I was wondering if there is some way to make the book rows move together with the shelf. Would parenting them to the shelf do this? Or is that something you need to do through scripts? Cheers! RE: Lever pushing a bookshelf that has books in it - flamez3 - 01-07-2012 (01-07-2012, 04:02 AM)LiVam Wrote: Hey guys,I have no idea how to make them move; you could just stack like a 100 books in the bookshelf, that wouldn't be boring : D RE: Lever pushing a bookshelf that has books in it - LiVam - 01-07-2012 (01-07-2012, 04:22 AM)flamez3 Wrote:(01-07-2012, 04:02 AM)LiVam Wrote: Hey guys,I have no idea how to make them move; you could just stack like a 100 books in the bookshelf, that wouldn't be boring : D I just think it looks a bit boring having the same books looped over and over. Being able to use the book rows helps the variation. It's not a huge deal, but the method may come in handy for other functions as well There is also performance to consider. Having tons of objects with physics isn't exactly friendly towards lower-end machines RE: Lever pushing a bookshelf that has books in it - Khyrpa - 01-07-2012 You could put those bookrows into the shelf entity in model editor. Don't ask me how though... RE: Lever pushing a bookshelf that has books in it - Statyk - 01-07-2012 (01-07-2012, 06:01 AM)Khyrpa Wrote: You could put those bookrows into the shelf entity in model editor. Don't ask me how though...This would require importing and modeling in a 3D program like Maya or Blender. RE: Lever pushing a bookshelf that has books in it - LiVam - 01-07-2012 (01-07-2012, 06:17 AM)Statyk Wrote:Is there a program for converting the .ent files to a usable format for Maya?(01-07-2012, 06:01 AM)Khyrpa Wrote: You could put those bookrows into the shelf entity in model editor. Don't ask me how though...This would require importing and modeling in a 3D program like Maya or Blender. RE: Lever pushing a bookshelf that has books in it - Khyrpa - 01-07-2012 You dont take the .ent files, there is .dae (collada) files in the folder where the .ent is collada files can be taken into Maya But I think you should be able to put the .dae files into the model editor and combine them all into a new shelf RE: Lever pushing a bookshelf that has books in it - Statyk - 01-07-2012 (01-07-2012, 06:33 AM)LiVam Wrote: Is there a program for converting the .ent files to a usable format for Maya?You download the OpenCollada plug-in for Maya (any version lower than 2012) and import the .DAE files... .ent files are .daes that hold variables for the game to use. Like making a model a puzzle object, light, monster, etc. (01-07-2012, 07:01 AM)Khyrpa Wrote: You dont take the .ent files, there is .dae (collada) files in the folder where the .ent isFrom what I remember, you can only have one model in the ModelEditor at a time RE: Lever pushing a bookshelf that has books in it - Khyrpa - 01-07-2012 (01-07-2012, 07:02 AM)Statyk Wrote: From what I remember, you can only have one model in the ModelEditor at a timeYep, seems like so. You can open up a .ent file with notepad and look inside, its mostly just the variables for how that entity behaves and where the .dae etc. are located. If you are hardcore, you could write .ent file from scratch without model editor. You could also try to create a new entity out of the bookrows that has physics, but no interaction. RE: Lever pushing a bookshelf that has books in it - Statyk - 01-07-2012 (01-07-2012, 07:48 AM)Khyrpa Wrote: You could also try to create a new entity out of the bookrows that has physics, but no interaction.Lol they would all fall connected to each other. As though they were glued together. DISPLAY BOOKS |