im trying to animate my guys walking useing DarkAI. the guys start moving but theres no animation. im not sure what im doing wrong here. but heres my code.
for ( int i = 1; i <= 10; i++ )
{
if ( AIGetEntityIsMoving ( i ) );
{
if ( arw1 == 0 && i == 1 )
{
dbLoopObject ( i );
arw1 = arw1 + 1;
}
if ( arw2 == 0 && i == 2 )
{
dbLoopObject ( i );
arw2 = arw2 + 1;
}
if ( arw3 == 0 && i == 3 )
{
dbLoopObject ( i );
arw3 = arw3 + 1;
}
if ( arw4 == 0 && i == 4 )
{
dbLoopObject ( i );
arw4 = arw4 + 1;
}
if ( arw5 == 0 && i == 5 )
{
dbLoopObject ( i );
arw5 = arw5 + 1;
}
if ( arw6 == 0 && i == 6 )
{
dbLoopObject ( i );
arw6 = arw6 + 1;
}
if ( arw7 == 0 && i == 7 )
{
dbLoopObject ( i );
arw7 = arw7 + 1;
}
if ( arw8 == 0 && i == 8 )
{
dbLoopObject ( i );
arw8 = arw8 + 1;
}
if ( arw9 == 0 && i == 9 )
{
dbLoopObject ( i );
arw9 = arw9 + 1;
}
if ( arw10 == 0 && i == 10 )
{
dbLoopObject ( i );
arw10 = arw10 + 1;
}
else
dbStopObject ( i );
if ( i == 1 )
arw1 = arw1 - 1;
if ( i == 1 )
arw2 = arw2 - 1;
if ( i == 3 )
arw3 = arw3 - 1;
if ( i == 4 )
arw4 = arw4 - 1;
if ( i == 5 )
arw5 = arw5 - 1;
if ( i == 6 )
arw6 = arw6 - 1;
if ( i == 7 )
arw7 = arw7 - 1;
if ( i == 8 )
arw8 = arw8 - 1;
if ( i == 9 )
arw9 = arw9 - 1;
if ( i == 10 )
arw10 = arw10 - 1;
}
}