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 opening bookshelf?
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#8
RE: Lever opening bookshelf?

If a move object's state's amount to 1 for open and 0 for closed, then setting its state to 1 will absolutely open it. As Cranky suggested, check out how Frictional did it in Amnesia. You have their objects, look at how they use them. The direction and amount to move will be set in the model editor, try opening up the object in the model editor and play with the settings to find a something that works for you. Alternatively, just follow Cranky's advice and set it's state to the opposite of whatever state moves it left (if 1 opens it left, set it to -1 and see what happens)

As great as the tutorials are, they are not sufficient for learning 'scripting' in general. People who can work this stuff out for themselves usually have scripting or programming experience outside of HPL2. Keep in mind those tutorials are made by people who are writing or recording a tutorial purely for the benefit of the community. They often assume knowledge on the part of the audiance, because to write every tutorial for someone who has no concept of scripting would be an enormous waste of time. Better you learn from tutorials that cover the basics, then move on to HPL2 tutorials demonstrating more advanced ways of doing things specific to HPL2 scripting.
05-11-2012, 02:06 PM
Find


Messages In This Thread
Lever opening bookshelf? - by Biscuitbarrel - 04-27-2012, 11:40 PM
RE: Lever opening bookshelf? - by SilentStriker - 04-27-2012, 11:45 PM
RE: Lever opening bookshelf? - by Biscuitbarrel - 04-27-2012, 11:52 PM
RE: Lever opening bookshelf? - by Cranky Old Man - 04-27-2012, 11:53 PM
RE: Lever opening bookshelf? - by Biscuitbarrel - 04-28-2012, 01:43 PM
RE: Lever opening bookshelf? - by Cranky Old Man - 04-28-2012, 01:57 PM
RE: Lever opening bookshelf? - by Biscuitbarrel - 05-10-2012, 11:05 PM
RE: Lever opening bookshelf? - by Cranky Old Man - 05-11-2012, 02:13 PM
RE: Lever opening bookshelf? - by Adrianis - 05-11-2012, 02:06 PM



Users browsing this thread: 1 Guest(s)