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
Another Lever help thread[SOLVED]
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#1
Another Lever help thread[SOLVED]

So I'm not very experienced in scripting but I want it so that when I pull the a lever down it moves a shelf or deactivate the current shelf and reactivate the moved shelf. It's probably easy enough but I just can't get it to work.

void OnStart()
{
SetEntityConnectionStateChangeCallback("Lever_1", "SecretShelf");
}

void SecretShelf(string &in EntityName, int alState)
{
if (alState == -1)
{
SetEntityActive("Shelf_1", false);
SetEntityActive("Shelf_2", true);
}
}

Help appreciated Smile
(This post was last modified: 05-15-2011, 08:18 PM by Rownbear.)
05-15-2011, 05:04 PM
Find


Messages In This Thread
Another Lever help thread[SOLVED] - by Rownbear - 05-15-2011, 05:04 PM
RE: Another Lever help thread - by Kyle - 05-15-2011, 05:46 PM
RE: Another Lever help thread - by Rownbear - 05-15-2011, 06:02 PM
RE: Another Lever help thread - by Kyle - 05-15-2011, 06:13 PM
RE: Another Lever help thread - by Rownbear - 05-15-2011, 06:17 PM
RE: Another Lever help thread - by Kyle - 05-15-2011, 06:18 PM



Users browsing this thread: 1 Guest(s)