i got this emeny right
he parachutes down
and changes animation when he hits the grouund
i want to write a script so when he changes to that animation
he starts shootoing
like i dunno a few bullets every second
help? lol
PooAs wrote:if(animindex == "enemy_small_left_shotgun" ) { shooting = 1; }
if(animindex == 4) { shooting = 1; }
if(animindex==3)
{
shooting=1;
newbullet++;
}
if(newbullet>=100)
{
newbullet = 0;
CreateActor("enemy_bullet_left", "bullet pistol left", "(none)", "(none)", 40, 60, false);
}
PooAs wrote:if(animindex == 3) { shooting = 1; }
if(shooting = 1) { newbullet += 1 }
if(newbullet >= 100)
{
newbullet = 0;
CreateActor("enemy_bullet_left", "bullet pistol left", "(none)", "(none)", 40, 60, false);
}
ok thats what i have..
i get like 3 errors and a warning lol
1 error is for line one
and line 2 has 2 errors and a warning
..
line one and two
get the error
cannot convert 'const int' to "identifier"...
help?? lol
Users browsing this forum: No registered users and 1 guest