Frictional Games Forum (read-only)

Full Version: My bookshelf won't rotate!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everybody, I followed the tutorial about 'Levers that opens secret shelfs' on the wiki page.

It says you have to create an area like this: img6.imageshack.us/img6/4914/shelf1.png to make your shelf rotate.
Then go to 'AngularOffsetArea' at the 'Entity' of the bookshelf and type in: 'rotatearea'.

The problem is that this 'Area script' doesn't work at all, the bookshelf won't rotate, it just slides to the right.
I think i'm missing a script about the 'Area rotate script'. Could anyone help please? This is extreme new for me Smile.





My .HPS:



////////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever", "func_shelf");
}


void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("shelf_1",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}



////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
Could be .map_cache file conflict.