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
Script Help Newbie. Script problem.
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#1
Newbie. Script problem.

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);
}
07-15-2012, 04:47 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Newbie. Script problem.

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

I rate it 3 memes.
07-15-2012, 04:49 AM
Find
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#3
RE: Newbie. Script problem.

(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.
07-15-2012, 04:57 AM
Find




Users browsing this thread: 1 Guest(s)