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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help making my secret shilf open.
Dilzilla Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2011
Reputation: 0
#1
I need help making my secret shilf open.

so i have my lever connected to my shelf and my code.....but i've never done code and im lost.... can some one help?

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

OnStart
{
SetEntityConnectionStateChangeCallback("secret_lever", "StateChangeLever");
}

void StateChangeLever(string &in asEntity, int alState)
{
if(alState == 1){
SetLeverStuckState(asEntity, 1, true);
SetMoveObjectState("secret_shelf", 1.0f);
}



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

}


Attached Files
.png   Screen shot 2011-09-16 at 4.02.23 PM.png (Size: 218.75 KB / Downloads: 98)
09-16-2011, 11:55 PM
Find


Messages In This Thread
I need help making my secret shilf open. - by Dilzilla - 09-16-2011, 11:55 PM



Users browsing this thread: 1 Guest(s)