Frictional Games Forum (read-only)
SanityBoost script is giving me an error? - 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: SanityBoost script is giving me an error? (/thread-10880.html)

Pages: 1 2


RE: SanityBoost script is giving me an error? - MissMarilynn - 10-21-2011

(10-20-2011, 10:55 PM)Your Computer Wrote:
(10-20-2011, 10:21 PM)MissMarilynn Wrote: Now my scripting isn't working for the monster being set active by picking up a crowbar. I want him to head to the player right away. My scripting is:

SetEntityPlayerInteractCallback("crowbar_1", "MonsterSpawn", false);



void MonsterSpawn(string& asName, string& asCallback)
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
ShowEnemyPlayerPosition("crowbarscare");
SetEntityActive("crowbarscare", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 4, "");
(and then lots more pathnodes)
}

You made the same mistake as with IsItLockedComplete.

(10-20-2011, 10:21 PM)MissMarilynn Wrote: Crowbarscare is the monster.

So there are two monsters? Or is "servant_grunt_1" supposed to be "crowbarscare"?
Yeah servant grunt 1 is crowbarscare. Bizarre name I know but it was easier to remember for me. I forgot to change the pathnodes but I don't think that would mess up my entire scripting would it? The monster doesn't even become active on entity.