The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 I don't see what's wrong here
Cyphermur9t Offline
Junior Member

Posts: 38
Threads: 17
Joined: Jan 2013
Reputation: 2
#1
I don't see what's wrong here

I'm having an issue of activating an AreaScript from another AreaScript, and having the newly activated one activate a Monster when touched. I just can't see what I did wrong with the code...

void OnStart()
{
    /////////
    //MONSTERS    
    AddEntityCollideCallback("Player", "ScriptArea_3", "FUNCTION5", true, 1);
    
    /////////
    //AREAS
    AddEntityCollideCallback("Player", "ScriptArea_4", "FUNCTION6", true, 1);
}


void FUNCTION5(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("servant_brute_2", true);
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_5", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_6", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_7", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_8", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_9", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_10", 0, "");
    AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_11", 0, "");
}

void FUNCTION6(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("ScriptArea_3", true);
}
02-07-2013, 08:10 AM
Find


Messages In This Thread
I don't see what's wrong here - by Cyphermur9t - 02-07-2013, 08:10 AM
RE: I don't see what's wrong here - by NaxEla - 02-07-2013, 08:28 AM
RE: I don't see what's wrong here - by NaxEla - 02-07-2013, 09:09 AM



Users browsing this thread: 1 Guest(s)