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
May someone please help?
spamqad Offline
Junior Member

Posts: 12
Threads: 4
Joined: Sep 2010
Reputation: 0
#1
May someone please help?

Ok so I am trying to create a small prank map to scare my friend, but my script is not working. What im trying to accomplish is when the player steps into ScriptArea_1 The brute spawns, and walks the nods if he cant find the player, But if the player tries to retreat to the closet ScriptArea_2 will be triggered and the monster inside the closet will spawn. However when I stepped into ScriptArea_1 nothing happened. Can someone please help me?
-----------------------------------------------------------------------------------------------------------

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "ScriptArea_1", true, 1);
}
void ScriptArea_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_7", 0, "");
AddEntityCollideCallback("Player", "PlayerCollide", "ScriptArea_2", true, 1);
}
void ScriptArea_2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
}
-----------------------------------------------------------------------------------------------------------
(This post was last modified: 12-15-2011, 03:41 AM by spamqad.)
12-15-2011, 03:15 AM
Find


Messages In This Thread
May someone please help? - by spamqad - 12-15-2011, 03:15 AM
RE: May someone please help? - by triadtimes - 12-15-2011, 03:30 AM
RE: May someone please help? - by spamqad - 12-15-2011, 03:41 AM



Users browsing this thread: 1 Guest(s)