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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving Shelf Using Secret Books
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#5
RE: Moving Shelf Using Secret Books

SetMoveObjectState is all you need. 1 refers to the "open" position of something (activated), and 0 refers to the "closed" position of something (inactivated); 0 is the starting position of a given entity unless otherwise changed via the level editor.

Also, there are 4 different types of secret moving shelves:

shelf_secret_door.ent

shelf_secret_door_interact.ent

shelf_secret_door_joint.ent

shelf_secret_door_rot.ent


make sure yours is not interact, joint, or rot. (based on the issue you described, it seems you are using a rotating shelf and have no AngularOffsetArea).

Make sure you're using "shelf_secret_door.ent"; this specific shelf moves left/right when the SetMoveObjectState is changed to 1.

SilentHideButFine's copy and paste of the shelf puzzle in game isn't very helpful to you; it is a somewhat advanced script that deals with the movement of the books and the effects for the puzzle, rather than the actual movement of the secret shelf.


So quick overview:
-Use shelf_secret_door.ent
-Use SetMoveObjectState and set it to 1 to "activate" the secret shelf

Alternatively, if you're interested in the other types of shelves, I am only familiar with a few; if you use the "Rotate" (rot) shelf, you need to go into the level editor and place a script area roughly the same length and height of the bookshelf, and put this area wherever you the bookshelf to "hinge" at, or rotate around. In the bookshelves options, make sure to put the name of the script area in the box under "AngularOffsetArea".

Hope that helped!

I rate it 3 memes.
06-18-2012, 02:13 PM
Find


Messages In This Thread
RE: Moving Shelf Using Secret Books - by Dutton - 06-18-2012, 07:04 AM
RE: Moving Shelf Using Secret Books - by Adny - 06-18-2012, 02:13 PM



Users browsing this thread: 1 Guest(s)