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!
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#14
RE: Need help!

(string &in asTimer) This means it's a timer..

When you make a collide function like AddEntityCollideFunction, it will not work with a timer function.
I would do it like this:


Spoiler below!

void OnStart()
{
AddEntityCollideCallback("Player", "monact", "startmonster", false, -1);
AddEntityCollideCallback("Enemy_Grunt", "PNScriptArea", "startmonster", false, 1);
}



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

for (int i = 1; i <40; i++)AddEnemyPatrolNode("Enemy_Grunt", "PathNodeArea_"+i, 0, "");
}



Are you sure you want this:
AddEntityCollideCallback("Player", "monact", "startmonster", false, -1);

To be false? This means that if the player leaves the area "monact" the monster will go active again.. Maybe you should set it to true?

Trying is the first step to success.
(This post was last modified: 11-27-2012, 05:22 PM by FlawlessHappiness.)
11-27-2012, 05:20 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: 3 Guest(s)