The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Troubles with Lever and secret shelf door...

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:
(This post was last modified: 01-01-2013, 08:17 AM by 31tashi.)
12-01-2012, 06:56 AM
Find


Messages In This Thread
Troubles with Lever and secret shelf door... - by 31tashi - 12-01-2012, 06:56 AM



Users browsing this thread: 1 Guest(s)