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
[SOLVED] Unlock door with colliding object, Not working
Theforgot3n1 Offline
Member

Posts: 192
Threads: 20
Joined: Apr 2012
Reputation: 6
#2
RE: Unlock door with colliding object, Not working

Since you don't have a response yet I can attempt to help.
Quote:void OnCollide_3(string &in asParent, string &in asChild, int alState)

{

if(alState == 1)

{

SetEntityActive("ScriptArea_3", false);

}



if(alState == -1)

{

SetEntityActive("ScriptArea_3", true);

}
}
When you go out of the "ScriptArea_4", are you sure it makes the entity active? I think collides only trigger when the entity enters the area and not leaves.
Also, when you test, is the "ScriptArea_4" normally inactive from the start?

Confusion: a Custom Story - Ch1 for play!
http://www.frictionalgames.com/forum/thread-15477.html
About 50% built.
Delayed for now though!
06-02-2012, 10:33 PM
Website Find


Messages In This Thread
RE: Unlock door with colliding object, Not working - by Theforgot3n1 - 06-02-2012, 10:33 PM



Users browsing this thread: 1 Guest(s)