Frictional Games Forum (read-only)
[SCRIPT] Newbie. Script problem. - 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: [SCRIPT] Newbie. Script problem. (/thread-16980.html)



Newbie. Script problem. - HeadyBoy - 07-15-2012

Very simple script at the moment, very new to custom story making. I keep getting this error...


"FATAL ERROR: Could not load script file
'custom_stories/Heist1/custom_stories/Heist1/maps/01.hps'
main (13,1) : ERR : Unexpected token '{'"

this is my script, yes, I know it's basic. Hehehe. Could somebody tell me what is wrong with it?
_____________________________________________________________________________


void OnStart()
{
AddEntityCollideCallback("Player", "roomareaone", "Collideroomareaone", true, 1);
SetEntityPlayerInteractCallback("cellar_wood01_slow_1", "Roar1", true);
}

void Collideroomareaone(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_slow_1", true, true);
}

void Roar1(string &in asEntity);
{
PlaySoundAtEntity("Roar1", "brute/enabled.snt", "Roar1", 0, false);
}


RE: Newbie. Script problem. - Adny - 07-15-2012

Remove the ";" from the end of "void Roar1(string &in asEntity)" and that should solve your problem.


RE: Newbie. Script problem. - HeadyBoy - 07-15-2012

(07-15-2012, 04:49 AM)andyrockin123 Wrote: Remove the ";" from the end of "void Roar1(string &in asEntity)" and that should solve your problem.
Thank you ever so much.