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
Monster area trigger
tokugawa1 Offline
Junior Member

Posts: 37
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
Monster area trigger

OK so when i added the path nodes and the stuff needed for the monster to spawn my map keeps crashing with this error:
FATAL ERROR: Could not load script file 'custom_stories/The Deception/maps/The Deception.hps'!
main (9,1) : ERR :Expected ',' or ';'


void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("monster_tinderbox", "Spawn_Monster", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
void MonsterFunction(string &in asParent, string &in asChild, int alState) <-------This is the line number 9
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0.0f, false);
RemoveItem("key_1");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 4, "");
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("servant_brute_1", true);
SetEntityActive("servant_grunt_3", true);
}
(This post was last modified: 08-02-2012, 07:35 PM by tokugawa1.)
08-02-2012, 07:24 PM
Find


Messages In This Thread
Monster area trigger - by tokugawa1 - 08-02-2012, 07:24 PM
RE: Monster area trigger - by Adny - 08-02-2012, 07:38 PM
RE: Monster area trigger - by tokugawa1 - 08-02-2012, 07:46 PM



Users browsing this thread: 2 Guest(s)