When i test my map, i receive the error "Script Compile Error: Bad Syntax {"
To be honest, i'm not sure what i've done wrong,
so if it's not too much trouble, could you please take a look at it? I really appreciate it.

I've attached the error and the script.
Thank you.
Code: Select all
main()
{
thread sound();
thread door_slider ();
}
door_slider()
{
door = getent( "door", "targetname" );
trig = getent( "doortrig", "targetname" );
while(true)
{
trig waittill ( "trigger" );
//wait 4;
door movez ( 94, 5, 0, 0.6 );
door waittill ( "movedone" );
wait 4;
//trig waittill ("trigger");
door movez( -94, 4, 0, 0.6 );
door waittill ( "movedone" ); {
}
}
sound()
{
trig = getent("sound_activate","targetname");
while(true)
{
trig waittill ( "trigger" );
musicplay ( "amb_dub" );
}
}