Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Lever pushing a bookshelf that has books in it
LiVam Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jan 2012
Reputation: 0
#1
Lever pushing a bookshelf that has books in it

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

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!
01-07-2012, 04:02 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Lever pushing a bookshelf that has books in it

(01-07-2012, 04:02 AM)LiVam Wrote: 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 Wink.

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


01-07-2012, 04:22 AM
Find
LiVam Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jan 2012
Reputation: 0
#3
RE: Lever pushing a bookshelf that has books in it

(01-07-2012, 04:22 AM)flamez3 Wrote:
(01-07-2012, 04:02 AM)LiVam Wrote: 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 Wink.

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


There is also performance to consider. Having tons of objects with physics isn't exactly friendly towards lower-end machines Wink
(This post was last modified: 01-07-2012, 04:53 AM by LiVam.)
01-07-2012, 04:37 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: Lever pushing a bookshelf that has books in it

You could put those bookrows into the shelf entity in model editor. Don't ask me how though...

01-07-2012, 06:01 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#5
RE: Lever pushing a bookshelf that has books in it

(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.
01-07-2012, 06:17 AM
Find
LiVam Offline
Junior Member

Posts: 10
Threads: 4
Joined: Jan 2012
Reputation: 0
#6
RE: Lever pushing a bookshelf that has books in it

(01-07-2012, 06:17 AM)Statyk Wrote:
(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.
Is there a program for converting the .ent files to a usable format for Maya? Smile

01-07-2012, 06:33 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#7
RE: Lever pushing a bookshelf that has books in it

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

01-07-2012, 07:01 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Lever pushing a bookshelf that has books in it

(01-07-2012, 06:33 AM)LiVam Wrote: Is there a program for converting the .ent files to a usable format for Maya? Smile
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 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
From what I remember, you can only have one model in the ModelEditor at a time
(This post was last modified: 01-07-2012, 07:03 AM by Statyk.)
01-07-2012, 07:02 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#9
RE: Lever pushing a bookshelf that has books in it

(01-07-2012, 07:02 AM)Statyk Wrote: From what I remember, you can only have one model in the ModelEditor at a time
Yep, 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.

01-07-2012, 07:48 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#10
RE: Lever pushing a bookshelf that has books in it

(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
01-07-2012, 07:50 AM
Find




Users browsing this thread: 2 Guest(s)