Is there any way to scan all entitys and check their skills rather then stopping at the closest one?
here is my code:
__________________________________________________________________________________
if(my.player_lock_on == 1)
{
c_scan(my.x,my.pan,vector(360,180,250),scan_ents | scan_limit | ignore_me);
IF (you != null) {
IF (you.entity_type == 2 && you.player_number == my.target_num)
{
my.targete_x = you.x;
my.targete_y = you.y;
my.targete_z = you.z;
send_skill(my.targete_x,SEND_ALL);
send_skill(my.targete_z,SEND_ALL);
send_skill(my.targete_y,SEND_ALL);
}
else
{
my.player_lock_on = 0;
my.target_num = 0;
send_skill(my.player_lock_on,SEND_ALL);
send_skill(my.target_num,SEND_ALL);
}
}
else
{
my.player_lock_on = 0;
my.target_num = 0;
send_skill(my.player_lock_on,SEND_ALL);
send_skill(my.target_num,SEND_ALL);
}
}
_______________________________________________________________________________
you can see why only scanning the fist enemy might be a problem...