![]() |
Custom story crash issue - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Custom story crash issue (/thread-19015.html) |
Custom story crash issue - Rowzter - 10-31-2012 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 ![]() RE: Custom story crash issue - The chaser - 10-31-2012 (10-31-2012, 08:40 PM)Rowzter Wrote: 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"You have two void OnStart(). It should be like this: Code: void OnStart() RE: Custom story crash issue - Rowzter - 10-31-2012 Thank you!!! you are the best on this forum!!!! Thank u very much!!!!!!!!!! =D=D xD, How do i "Lock" this thread now xD? |