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
Why wouldn't this script work?
Prelauncher Offline
Senior Member

Posts: 451
Threads: 11
Joined: May 2011
Reputation: 13
#17
RE: Why wouldn't this script work?

No, SetEntityActive looks like this:
SetEntityActive(string& asName, bool abActive);


I think that you have confused your functions, You don't have to name the function to what you want to use:
Example
AddEntityCollideCallback("Player", "scriptarea", "MYFUNC", true, 1); //This is placed under void OnStart or OnEnter
void MYFUNC(string &in asParent, string &in asChild, int alState)
{    
SetEntityActive("Item1", true); //True means that you want the entity to be active, if you want it to be inactive you use false.
}

Socialism (noun): A great way to run out of other people's money.
(This post was last modified: 05-31-2012, 09:25 AM by Prelauncher.)
05-31-2012, 09:24 AM
Find


Messages In This Thread
RE: Why wouldn't this script work? - by Prelauncher - 05-31-2012, 09:24 AM



Users browsing this thread: 1 Guest(s)