Делаю простенькое АИ но почему-то не работает
Code
global.went=0;
global.shoot=0;
global.stand=0;
humanlife=100;
if global.went=1 then
{
frame-=2
first_frame=5;
last_frame=30;
move_towards_point(camera.x,camera.y,6.5);
}
if global.shoot=1 then
{
frame-=5
first_frame=0;
last_frame=5;
}
if global.stand=1 then
{
frame=100
first_frame=1;
last_frame=1;
}
if point_distance(x,y,camera.x,camera.y) < 2 then
{
global.went=1
}