ElEmEnT
27th August 2013, 18:22
Hey Community,
i need help. I got an error on this sript. I map only about 3 days,
so i dont have very much experience in scripting.
main()
{
thread jaildoor();
thread jailkillr();
thread jailkilll();
}
jaildoor()
{
jaildoor = getent("jaildoor","targetname");
trig = getent("jaildoor_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jaildoor movez (-104,7,3,3);
jaildoor waittill ("movedone");
wait(3);
jaildoor movez (104,7,3,3);
jaildoor waittill ("movedone");
}
}
jailkillr()
{
jailkillr = getent("jailkillr","targetname");
trig = getent("jailkillr_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jailkillr movey (97,7,3,3);
jailkillr waittill ("movedone");
wait(3);
jailkillr movey (-97,7,3,3);
jailkillr waittill ("movedone");
}
}
jailkilll()
{
jailkilll = getent("jailkilll","targetname");
trig = getent("jailkilll_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jailkilll movez (-97,7,3,3);
jailkilll waittill ("movedone");
wait(3);
jailkilll movez (97,7,3,3);
jailkilll waittill ("movedone");
}
}
And the error is.
******* script runtime error *******
undefined is not an object: (file 'maps/mp/jaildoor.gsc', line 31)
trig waittill ("trigger");
*
called from:
(file 'maps/mp/jaildoor.gsc', line 4)
thread jailkillr();
*
called from:
(file 'maps/mp/mp_firstmap.gsc', line 28)
maps\mp\jaildoor::main();
*
started from:
(file 'maps/mp/mp_firstmap.gsc', line 1)
main()
*
************************************
writing to: F:\Games\Activision\Call of duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_firstmap.gsc', line 1)
i need help. I got an error on this sript. I map only about 3 days,
so i dont have very much experience in scripting.
main()
{
thread jaildoor();
thread jailkillr();
thread jailkilll();
}
jaildoor()
{
jaildoor = getent("jaildoor","targetname");
trig = getent("jaildoor_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jaildoor movez (-104,7,3,3);
jaildoor waittill ("movedone");
wait(3);
jaildoor movez (104,7,3,3);
jaildoor waittill ("movedone");
}
}
jailkillr()
{
jailkillr = getent("jailkillr","targetname");
trig = getent("jailkillr_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jailkillr movey (97,7,3,3);
jailkillr waittill ("movedone");
wait(3);
jailkillr movey (-97,7,3,3);
jailkillr waittill ("movedone");
}
}
jailkilll()
{
jailkilll = getent("jailkilll","targetname");
trig = getent("jailkilll_trigger","targetname");
while(1)
{
trig waittill ("trigger");
jailkilll movez (-97,7,3,3);
jailkilll waittill ("movedone");
wait(3);
jailkilll movez (97,7,3,3);
jailkilll waittill ("movedone");
}
}
And the error is.
******* script runtime error *******
undefined is not an object: (file 'maps/mp/jaildoor.gsc', line 31)
trig waittill ("trigger");
*
called from:
(file 'maps/mp/jaildoor.gsc', line 4)
thread jailkillr();
*
called from:
(file 'maps/mp/mp_firstmap.gsc', line 28)
maps\mp\jaildoor::main();
*
started from:
(file 'maps/mp/mp_firstmap.gsc', line 1)
main()
*
************************************
writing to: F:\Games\Activision\Call of duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_firstmap.gsc', line 1)