7days7
12th July 2016, 16:43
Hi!
I'm a newbie in cod2 scripting so it's a little problem but I want to grow in this knowledge so if there's someone who can help me - I'll be grateful ;D Currently I'm making map with doors but when I turn server on, I've some error in console like this:
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006
******* script compile error *******
unknown function: @ 44406
************************************
********************
ERROR: script compile error
(see console for details)
********************
----- Server Shutdown -----
==== ShutdownGame ====
******* script compile error *******
unknown function: (file 'maps/mp/mp_laboratory.gsc', line 16)
triger01 waitill ("trigger");
And here's my gsc file:
main()
{
maps\mp\_load::main();
level thread door01();
}
door01()
{
triger01 = getent ("trigger_door01", "targetname");
l_door01 = getent ("leftdoor01", "targetname");
r_door01 = getent ("rightdoor01", "targetname");
while(1)
{
triger01 waitill ("trigger");
l_door01 moveX (-256, 5, 1.2, 1.2);
r_door01 moveX (-448, 5, 1.2, 1.2);
l_door01 waitill ("movedone");
r_door01 waitill ("movedone");
wait(3);
l_door01 moveX (-320, 5, 1.2, 1.2);
r_door01 moveX (-384, 5, 1.2, 1.2);
l_door01 waitill ("movedone");
r_door01 waitill ("movedone");
}
}
EDIT: Omg, I was moved this topic to mapping section... My mistake, sorry ;P
I'm a newbie in cod2 scripting so it's a little problem but I want to grow in this knowledge so if there's someone who can help me - I'll be grateful ;D Currently I'm making map with doors but when I turn server on, I've some error in console like this:
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006
******* script compile error *******
unknown function: @ 44406
************************************
********************
ERROR: script compile error
(see console for details)
********************
----- Server Shutdown -----
==== ShutdownGame ====
******* script compile error *******
unknown function: (file 'maps/mp/mp_laboratory.gsc', line 16)
triger01 waitill ("trigger");
And here's my gsc file:
main()
{
maps\mp\_load::main();
level thread door01();
}
door01()
{
triger01 = getent ("trigger_door01", "targetname");
l_door01 = getent ("leftdoor01", "targetname");
r_door01 = getent ("rightdoor01", "targetname");
while(1)
{
triger01 waitill ("trigger");
l_door01 moveX (-256, 5, 1.2, 1.2);
r_door01 moveX (-448, 5, 1.2, 1.2);
l_door01 waitill ("movedone");
r_door01 waitill ("movedone");
wait(3);
l_door01 moveX (-320, 5, 1.2, 1.2);
r_door01 moveX (-384, 5, 1.2, 1.2);
l_door01 waitill ("movedone");
r_door01 waitill ("movedone");
}
}
EDIT: Omg, I was moved this topic to mapping section... My mistake, sorry ;P