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
My bookshelf won't rotate!
Bas Offline
Junior Member

Posts: 45
Threads: 6
Joined: Feb 2012
Reputation: 0
#1
My bookshelf won't rotate!

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()
{

}
02-10-2012, 10:58 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: My bookshelf won't rotate!

Could be .map_cache file conflict.

Tutorials: From Noob to Pro
02-10-2012, 11:21 AM
Website Find




Users browsing this thread: 1 Guest(s)