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
List of Amnesia variables
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: List of Amnesia variables

(01-04-2012, 04:29 AM)Sazureth Wrote: Aaaand now while we're at it;

Could you tell me why my for-loop doesn't work in the void Patrol()?
It works if put inside void OnStart but not in Patrol. Calling the Patrol works fine, I'm sure of that (because the same area trigger a function that works)
void OnStart ()
{
AddEntityCollideCallback("Player", "test1", "Patrol", true, 1);
}

void Patrol()
{
    SetEntityActive("servant_grunt", true);
    for (int i = 1; i < 7; i++)
    {
         AddEnemyPatrolNode("servant_grunt", "PathNodeArea_"+i, 0, "");
    }
}

For one, You need a syntax after "void Patrol". Seeing as its an area collide, use this:

void Patrol(string &in asParent, string &in asChild, int alState)

01-04-2012, 04:34 AM
Find


Messages In This Thread
List of Amnesia variables - by Sazureth - 01-04-2012, 03:30 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 03:32 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 03:46 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:00 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 04:12 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:16 AM
RE: List of Amnesia variables - by Sazureth - 01-04-2012, 04:29 AM
RE: List of Amnesia variables - by Statyk - 01-04-2012, 04:34 AM
RE: List of Amnesia variables - by Your Computer - 01-04-2012, 07:14 PM
RE: List of Amnesia variables - by Krymtel - 01-06-2012, 03:23 PM
RE: List of Amnesia variables - by Apjjm - 01-06-2012, 05:57 PM
RE: List of Amnesia variables - by MrBigzy - 01-04-2012, 07:33 PM
RE: List of Amnesia variables - by Sazureth - 01-06-2012, 07:17 PM
RE: List of Amnesia variables - by MrBigzy - 01-06-2012, 07:55 PM



Users browsing this thread: 1 Guest(s)