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
SetEntityActive("shelf_high01_1", false); Doesnt work
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#1
SetEntityActive("shelf_high01_1", false); Doesnt work

Hi, Im trying to get it work so that when the level touches a area it triggers a function. The problem however is that when I start the map even though i checked of the "Active" thing it still is there and the script doesnt work either.
This is my script:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("lever_small01_1", "Sesame", "Open", true, 1);
}

void Open(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("shelf_high01_1", false);
SetEntityActive("shelf_high01_6", true);
}

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

}

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

}
05-24-2011, 09:50 PM
Find


Messages In This Thread
SetEntityActive("shelf_high01_1", false); Doesnt work - by Henriksen - 05-24-2011, 09:50 PM



Users browsing this thread: 1 Guest(s)