Multiple problems - 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: Multiple problems (/thread-14799.html) |
Multiple problems - Saren - 04-15-2012 Alright, been some time guys, I was.... I guess you can call it an accident and get really messed.... lotsa wounds.... anyway, I'm back and I reeeeaaalllly don't have the energy right now to try and keep fixing these mistakes myself.... which I have in a long time.... First is that a monster should spawn after you pick up a key, but he dose'nt spawn.... tried with diffrent ones, same resault. And yes, I watched Your computer's tutorial...... still same.. here's is da script: //Spawn brute void ActivateMonster(string &in AsEntity) { SetEntityActive("servant_brute", true); AddEnemyPatrolNode("servant_brute", "PathNodeArea_1", 2, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_2", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_3", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_4", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_5", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_6", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_7", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_8", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_9", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_10", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_11", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_12", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_13", 0, ""); AddEnemyPatrolNode("servant_brute", "PathNodeArea_14", 0, ""); } void Despawnservant_brute(string &in asParent , string &in asChild , int alState) { SetEntityActive("servant_brute", false); } void OnLeave() { } Second is that the key does not work in a different map where it should. Script: void OnStart() { AddUseItemCallback("", "Upperfloorkey", "upperfloordoor", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("upperfloordoor", false, true); PlaySoundAtEntity("", "unlock_door", "upperfloordoor", 0, false); PlaySoundAtEntity("", "03_puzzle_secret", "Player", 0, false); RemoveItem("Upperfloorkey"); } void OnLeave() { } RE: Multiple problems - SilentStriker - 04-15-2012 First problem: I would guess it's a PlayerInteractCallback by the looks of the syntax so try this Code: void ActivateMonster(string &in asEntity) Problem 2: Check so the naming is correct on both the door and the key RE: Multiple problems - Saren - 04-15-2012 (04-15-2012, 01:18 AM)SilentStriker Wrote: First problem: I would guess it's a PlayerInteractCallback by the looks of the syntax so try thisYou quick yo... lol, anyway, alright, gonna see if this 1 works RE: Multiple problems - SilentStriker - 04-15-2012 (04-15-2012, 01:20 AM)Saren Wrote:haha yea I'm bored and it's late I should get to bed x)(04-15-2012, 01:18 AM)SilentStriker Wrote: First problem: I would guess it's a PlayerInteractCallback by the looks of the syntax so try thisYou quick yo... lol, anyway, alright, gonna see if this 1 works RE: Multiple problems - Saren - 04-15-2012 (04-15-2012, 01:21 AM)SilentStriker Wrote:Hahaha yea ditto.... xD(04-15-2012, 01:20 AM)Saren Wrote:haha yea I'm bored and it's late I should get to bed x)(04-15-2012, 01:18 AM)SilentStriker Wrote: First problem: I would guess it's a PlayerInteractCallback by the looks of the syntax so try thisYou quick yo... lol, anyway, alright, gonna see if this 1 works What time is it where you live? RE: Multiple problems - SilentStriker - 04-15-2012 It was around 2:18 am when I replied RE: Multiple problems - Saren - 04-15-2012 (04-15-2012, 09:02 AM)SilentStriker Wrote: It was around 2:18 am when I repliedLol dayum, was around the same here..... you not from USA then, hahaha, nice to see not everyone is xD EDIT: Yea I tried it.... no, not working at all.. RE: Multiple problems - SilentStriker - 04-15-2012 I'm from Sweden ^^ Check so everything is named right, since I believe you don't get any errors? just not working right? RE: Multiple problems - Saren - 04-16-2012 (04-15-2012, 04:13 PM)SilentStriker Wrote: I'm from Sweden ^^ Check so everything is named right, since I believe you don't get any errors? just not working right?Nice we are neighbours, I'm from DK =) Well I originally come from Russia but I live in DK... haha And yea, the stuff just don't work.... no FATAL ERRORS xD |