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 Can't get Areas active
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: Can't get Areas active

Why so complicated, make it like this instead:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Door", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_1", "Script", true, 1);
}

void Door(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Door_1", true);
}

void Door2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Door_2", true);
}

void Script(string &in asParent, string &in asChild, int alState)
{
AddEntityCollideCallback("Player", "ScriptArea_2", "Door2", true, 1);
}

And make sure all script areas are activated (enabled)


The Interrogation
Chapter 1

My tutorials
02-04-2012, 09:49 PM
Find


Messages In This Thread
Can't get Areas active - by trollox - 02-04-2012, 05:24 PM
RE: Can't get Areas active - by Elven - 02-04-2012, 09:49 PM
RE: Can't get Areas active - by trollox - 02-04-2012, 10:13 PM
RE: Can't get Areas active - by Elven - 02-04-2012, 10:14 PM
RE: Can't get Areas active - by vcplz - 02-04-2012, 10:26 PM



Users browsing this thread: 1 Guest(s)