Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make encounters?
sacroid Offline
Member

Posts: 88
Threads: 11
Joined: Apr 2010
Reputation: 0
#11
RE: How to make encounters?

Hmmm... PathNode doesn't seem to work, the despawn area works perfectly, I throw a box into the despawn area to "distract" him and make him go there and when he steps the area he dissapears, so that's perfect, but the waypoint isn't working! :S
Here is the script, I'm so sure something is wrong:
void OnStart()
{
    
        AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScriptArea_1", true, 0);
    AddEntityCollideCallback("servant_brute_1", "ScriptArea_2", "CollideScriptArea_2", true, 0);
    AddEnemyPatrolNode("servant_brute_1", "PosNodeArea_1", 0, "");
    
}

void OnEnter()
{
}


void CollideScriptArea_1(string &in asParent, string &in asChild, int alState)
{
    
    SetEntityActive("servant_brute_1", true);

}

void CollideScriptArea_2(string &in asParent, string &in asChild, int alState)
{
    
    SetEntityActive("servant_brute_1", false);
    
}

(This post was last modified: 09-15-2010, 04:27 PM by sacroid.)
09-15-2010, 04:24 PM
Find


Messages In This Thread
How to make encounters? - by sacroid - 09-15-2010, 12:40 AM
RE: How to make encounters? - by MulleDK19 - 09-15-2010, 02:53 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 06:26 AM
RE: How to make encounters? - by theDARKW0LF - 09-15-2010, 08:08 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:16 AM
RE: How to make encounters? - by jens - 09-15-2010, 08:21 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 08:25 AM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:21 PM
RE: How to make encounters? - by jens - 09-15-2010, 02:31 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 02:41 PM
RE: How to make encounters? - by Tony32 - 01-12-2011, 02:46 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 04:24 PM
RE: How to make encounters? - by jens - 09-15-2010, 05:01 PM
RE: How to make encounters? - by sacroid - 09-15-2010, 05:11 PM
RE: How to make encounters? - by Ethril - 01-12-2011, 07:53 AM
RE: How to make encounters? - by Neatherblade - 01-12-2011, 08:54 PM



Users browsing this thread: 1 Guest(s)