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 Spawning a monster with a script area...
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#2
RE: Spawning a monster with a script area...

(06-17-2013, 12:50 AM)Bonehead Wrote: A friend and I (Kiandra) Cannot seem to get this working. We've both been poking at it for a while and just can't get it to work. Here is the script..

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_brute", "brutepatrol", true, 1);
}

void OnEnter()
{

}

void OnLeave()
{

}

void brutepatrol(string &in asParent, string &in asChild)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_19", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_25", 0, "");
}


It causes no errors whatsoever. Just nothing happens in game.. Anyone know why?


Spoiler below!

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


You're missing int alState.
06-17-2013, 01:12 AM
Find


Messages In This Thread
RE: Spawning a monster with a script area... - by ExpectedIdentifier - 06-17-2013, 01:12 AM



Users browsing this thread: 1 Guest(s)