Page 2 of 2

Posted: July 22nd, 2006, 12:15 am
by creator
dam those compiling errors

Code: Select all

******* script runtime error *******
getent used with more than one entity: (file 'maps\mp\c_jumps_rotatings.gsc', line 10)
platform = getent("C_jumps_rotate","targetname"); 

           *
called from:
(file 'maps\mp\c_jumps_rotatings.gsc', line 3)
thread platform();

       *
called from:
(file 'maps\mp\c_jumps.gsc', line 7)
maps\mp\C_Jumps_rotatings::main();

*
called from:
(file 'maps\mp\c_jumps.gsc', line 1)
main()

*
************************************
********************
ERROR: script runtime error
(see console for details)
********************

Posted: July 22nd, 2006, 1:21 am
by Drofder2004
post you current script.

Posted: July 22nd, 2006, 1:23 am
by creator

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");
}
}

Posted: July 22nd, 2006, 7:43 pm
by Drofder2004
Ok, rename the platforms in your map, so they BOTH are called "jump_rotate"

Code: Select all

main()
{
platforms = getentarray("jump_rotate","targetname");
for(i = 0; i < platforms.size; i++)
{
   platforms[i] thread rotate();
}
}

rotate()
{
while (1)
{
self rotateyaw(360, 5);
self waittill("rotatedone");
}
}

Posted: July 22nd, 2006, 7:48 pm
by creator
Drofder2004 wrote:Ok, rename the platforms in your map, so they BOTH are called "jump_rotate"

Code: Select all

main()
{
platforms = getentarray("jump_rotate","targetname");
for(i = 0; i < platforms.size; i++)
{
   platforms[i] thread rotate();
}
}

rotate()
{
while (1)
{
self rotateyaw(360, 5);
self waittill("rotatedone");
}
}
ok i will test it tonight
can u look at the other reply i made with trigger_once

Posted: July 22nd, 2006, 10:58 pm
by creator
thx works