Page 1 of 1

Script Compile error

Posted: March 18th, 2006, 9:38 pm
by Spyhunter
hey,

I want 2 make 2 doors that go open to the sieds, so i made a map with 2 doors in it gave it a targetname and stuff.
I also put a trigger_multiple for it. i made this script, but this isnt orking

Code: Select all

main()
{
maps\mp\_load::main();
thread begin_bewegen();
thread begin_bewegen2();
}

begin_bewegen()
{
deur1 = getent ("deur1","targetname");
trig = getent ("deur1_trig","targetname");
trig waittill ("trigger");
deur1 moveto ( (-64, 200, 128), 10);
wait(10);
deur1 moveto ((0, 200, 128), 10); 
}

begin_bewegen2()
{
deur2 = getent ("deur2","targetname");
trig = getent ("deur2_trig","targetname");
trig waittill ("trigger");
deur2 moveto ( (128, 200, 128), 10);
wait(10);
deur2 moveto ((64, 200, 128), 10); 
}
here's the exact error
http://img452.imageshack.us/my.php?imag ... led2ei.jpg

Posted: March 18th, 2006, 9:43 pm
by Nightmare
did you give the doors the script_brushmodel? Its saying that a line in your script is trying to make an object that doesnt exsist move

Posted: March 18th, 2006, 9:47 pm
by Pedsdude
I think Nightmare is right - looks like you didn't give them script_brushmodel's.

Posted: March 18th, 2006, 9:47 pm
by Guest
Yeah, i did if you want my map / gsc add me to your msn randy_dhondt_5@hotmail.com

Posted: March 18th, 2006, 10:49 pm
by Drofder2004
Its your triggers that are not working not your doors.

Make sure your trigger is made of only the trigger texture on all sides. Right cliukc and make it a trigger mulitple. Press n and give it a targetname. If it doesnt work, remake the trigger.

Posted: March 18th, 2006, 10:58 pm
by Nightmare
Ok, after inspecting you .map carefully I found something wrong with how you typed in your entities:

Code: Select all

Key: deur1_trigger
Value: targetname
when it should have been

Code: Select all

Key: targetname
Value: deur1_trigger
I also changed the door and trigger names to something alittle easier to understand and I also made your script alot simpler

Here is the zip with the .map, the gsc in txt format and the pk3


http://s59.yousendit.com/d.aspx?id=2BO9 ... CCFV661ZTX


I have to say, that was pretty well hidden :P

Score one for me :D

Posted: March 18th, 2006, 11:38 pm
by Pedsdude
Nice one Nightmare :) Topic locked.