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
Enemy path script issue
Synestral Offline
Junior Member

Posts: 4
Threads: 3
Joined: Aug 2011
Reputation: 0
#1
Enemy path script issue

alright, so i have been trying to get an enemy to walk a path, and disapppear. this is the script i have
void OnStart()
{
SetEntityPlayerInteractCallback("Monster_Key_1", "Spawn_Monster", true);
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("servant_brute_1", true);
void AddEnemyPatrolNode("servant_grunt_1", "Node_1", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_2", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_3", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_4", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_5", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_6", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_5", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_4", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_3", float 0, string& "");
void AddEnemyPatrolNode("servant_grunt_1", "Node_2", float 0, string& "");
}

void MosterEnd(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("servant_grunt_1", false);
}

and i get this error

FATAL ERROR: could not load script file
'custom_stories/Stalker?maps/Beginning.hps'!
main (9,60) : ERR : Expected '('
main (10,60) : ERR : Expected '('
main (11,60) : ERR : Expected '('
main (12,60) : ERR : Expected '('
main (13,60) : ERR : Expected '('
main (14,60) : ERR : Expected '('
main (15,60) : ERR : Expected '('
main (16,60) : ERR : Expected '('
main (17,60) : ERR : Expected '('
main (18,60) : ERR : Expected '('

Does anyone know ehat i am doing wrong?
08-05-2011, 10:10 PM
Find


Messages In This Thread
Enemy path script issue - by Synestral - 08-05-2011, 10:10 PM
RE: Enemy path script issue - by MrCookieh - 08-05-2011, 10:22 PM
RE: Enemy path script issue - by Apjjm - 08-05-2011, 10:33 PM



Users browsing this thread: 1 Guest(s)