KillerSam wrote:You have made a mistake with the targetnames.
Make sure that the platform has the targetname: c_platform3, if that is the one you wish to use, and that in the script it has it defined with the line:
platform = getent("c_platform3","targetname");
then dont use c_platform3 in the script, use platform in the script to relate to the object, e.g as luke said.
first: when i remove the line: maps\mp\C_Jumps_rotatings::main(); from my gsc ( C_jumps.gsc )
and run the game there are no bugs
but when i add again i get those bugs
any idea why?
Code: Select all
main()
{
thread platform();
thread platform1();
}
platform()
{
platform = getent("C_jumps_rotate","targetname");
while (1)
{
platform rotateyaw(360, 5);
platform waittill("rotatedone");
}
}
platform1()
{
platform1 = getent("C_jumps_rotate2","targetname");
while (1)
{
platform1 rotateyaw(360, 5);
platform1 waittill("rotatedone");
}
}
target names work...
so.. WTF lol
Code: Select all
******* script runtime error *******
undefined is not an entity: (file 'maps\mp\c_jumps_movingobjects.gsc', line 39)
C_platform3 moveY (-190,1,0.5,0.5);
*
called from:
(file 'maps\mp\c_jumps_movingobjects.gsc', line 5)
thread C_platform3();
*
called from:
(file 'maps\mp\c_jumps.gsc', line 6)
maps\mp\C_Jumps_movingobjects::main();
*
called from:
(file 'maps\mp\c_jumps.gsc', line 1)
main()
Code: Select all
C_platform3()
{
C_platform3 = getent ("c_jumps_move3","targetname");
while(1)
{
C_platform3 moveY (-190,1,0.5,0.5);
wait(1);
C_platform3 moveY (190,1,0.5,0.5);
C_platform3 waittill ("movedone");
}
}