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
Custom story crash issue
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#1
Custom story crash issue

Hello!, i have solved the Key unlock door problem, but now i want a grunt to spawn when im entering an area. When i start the custom story i got a crash report saying like "Could not load script, FOund parameters with the same name"

here is my new script:



////////////////////////////
// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "key_study_1", "mansion_1", "UnlockDoor", true);
}

void UnlockDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");

}



Is there some errors here?, i cant solve this problem Sad
10-31-2012, 08:40 PM
Find


Messages In This Thread
Custom story crash issue - by Rowzter - 10-31-2012, 08:40 PM
RE: Custom story crash issue - by The chaser - 10-31-2012, 08:50 PM
RE: Custom story crash issue - by Rowzter - 10-31-2012, 08:56 PM



Users browsing this thread: 1 Guest(s)