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
Need Help for Scripting Rotating Bookshelf
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Need Help for Scripting Rotating Bookshelf

Here's how your script should look:


void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_book", "shelf");
}


void shelf(string &in asEntity, int alState)
{
if(alState == 1)
{
SetMoveObjectState("books", 1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
}
}

And here's a quick tutorial for secret shelves (just follow the top portion labeled "The Bookshelf"):

http://wiki.frictionalgames.com/hpl2/tut...cretshelfs


Hope that helped.

I rate it 3 memes.
08-28-2012, 03:34 AM
Find


Messages In This Thread
RE: Need Help for Scripting Rotating Bookshelf - by Adny - 08-28-2012, 03:34 AM



Users browsing this thread: 1 Guest(s)