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
Help with level and secret shelf
Exostalker Offline
Member

Posts: 204
Threads: 10
Joined: Aug 2010
Reputation: 3
#1
Help with level and secret shelf

So I spawned secret shelf and lever in my map.
It's named secret_shelf and secret_lever, also secret_shelf has a script area called area_rotate, and it's added as angular offset area to secret shelf. So what I want to do is to make lever open this secret shelf, so I could use the doors. Everything seems to be set as in the original map from Amnesia, but it still gives me "unexpected ending" error, so I guess there should be some kind of error with my hps file:

void OnStart()
{
//----CONNECT CALLBACKS----//
/*Secret hole in wall
*/

ConnectEntities("shelf_connection", //Name of connection
"secret_lever", //Parent entity (Affects)
"secret_shelf", //Child entity (Affected)
false, //Invert the state sent
1, //States used (0=both), checked before invertion.
"CreateDust"); //callback

//SetMoveObjectAngularOffsetArea("secret_shelf", "rotatearea");

}

04-28-2011, 07:25 PM
Find


Messages In This Thread
Help with level and secret shelf - by Exostalker - 04-28-2011, 07:25 PM



Users browsing this thread: 1 Guest(s)