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
Need help!
Projektamensia Offline
Junior Member

Posts: 16
Threads: 3
Joined: Oct 2012
Reputation: 0
#13
RE: Need help!

Nice, I got it working now, thanks for all the help!

Now I just need to fix the loop since I saw it did not worked...
My code is like this:

void OnStart()
{

AddEntityCollideCallback("Player", "monact", "startmonster", false, -1);
AddEntityCollideCallback("Enemy_Grunt", "PNScriptArea", "MonsterFunction2", false, 1);
}


void startmonster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Enemy_Grunt", true);
AddTimer("", 1, "MonsterFunction2");
}

void MonsterFunction2(string &in asTimer)
{
for (int i = 1; i <40; i++)
{
AddEnemyPatrolNode("Enemy_Grunt", "PathNodeArea_"+i, 0, "");
}
}




The last pathnode(Pathnode nr. 39) is behind the script box PNScriptArea so he walks through the script box to trigger the loop again but this does not seems to work. Any suggestions? Smile
11-27-2012, 05:09 PM
Find


Messages In This Thread
Need help! - by Projektamensia - 11-26-2012, 01:32 PM
RE: Need help! - by The chaser - 11-26-2012, 02:43 PM
RE: Need help! - by Projektamensia - 11-26-2012, 11:17 PM
RE: Need help! - by Damascus - 11-27-2012, 02:33 AM
RE: Need help! - by Projektamensia - 11-27-2012, 02:01 PM
RE: Need help! - by The chaser - 11-27-2012, 02:06 PM
RE: Need help! - by Projektamensia - 11-27-2012, 02:19 PM
RE: Need help! - by FlawlessHappiness - 11-27-2012, 02:33 PM
RE: Need help! - by Projektamensia - 11-27-2012, 04:00 PM
RE: Need help! - by FlawlessHappiness - 11-27-2012, 04:12 PM
RE: Need help! - by Projektamensia - 11-27-2012, 04:17 PM
RE: Need help! - by FlawlessHappiness - 11-27-2012, 04:30 PM
RE: Need help! - by Projektamensia - 11-27-2012, 05:09 PM
RE: Need help! - by FlawlessHappiness - 11-27-2012, 05:20 PM
RE: Need help! - by Projektamensia - 11-27-2012, 08:05 PM
RE: Need help! - by FlawlessHappiness - 11-27-2012, 08:16 PM
RE: Need help! - by Your Computer - 11-27-2012, 08:48 PM
RE: Need help! - by Projektamensia - 11-28-2012, 09:37 PM



Users browsing this thread: 6 Guest(s)