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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Troubles with Lever and secret shelf door...
31tashi Offline
Junior Member

Posts: 7
Threads: 2
Joined: Dec 2012
Reputation: 0
#2
RE: Troubles with Lever and secret shelf door...

(12-01-2012, 06:56 AM)31tashi Wrote: I checked other posts and it just doesn't seem to click with me i guess.. This will be my first time making a custom story and scripting so i'm a noobie, forgive me if i dont understand something completely.
On to the problem:
I used the script from the wiki and set in all the necessaries. Whenever i pull or push my lever, nothing happens...
My Script:

void OnStart()
{
SetEntityConnectionStateChangeCallback("lever", "func_shelf");
}


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

I'm trying to make my shelf rotate at an angle from about 90 degrees to 0 degrees... But yeah if i could have some help it would be really appreciated. c:
Can't anyone help? My lever is named lever and my shelf's name is shelf..
12-01-2012, 07:09 PM
Find


Messages In This Thread
RE: Troubles with Lever and secret shelf door... - by 31tashi - 12-01-2012, 07:09 PM



Users browsing this thread: 1 Guest(s)