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
Script Help Script not working
aceuniverse Offline
Junior Member

Posts: 3
Threads: 2
Joined: Aug 2012
Reputation: 0
#1
Script not working

bear with me on this I'm brand new to scripting in Amensia

I wanted a lever ("lever_1") to collide with the area ("lever_area"), then cause lever_1, lever_mount to disappear while the real lever is activated


void onStart()
{
AddEntityCollideCallback("lever_1", "lever_area", "levervisible", false, 1);

}

void OnEnter(){
}

void OnLeave(){

}

void levervisible(string &in Parent, string &in Child, int state) {
SetEntityActive("lever_1", false);
SetEntityActive("lever_mount", false);
SetEntityActive("actual_lever", true);
}
08-10-2012, 12:46 AM
Find


Messages In This Thread
Script not working - by aceuniverse - 08-10-2012, 12:46 AM
RE: Script not working - by Adny - 08-10-2012, 12:50 AM
RE: Script not working - by aceuniverse - 08-10-2012, 01:01 AM



Users browsing this thread: 1 Guest(s)