but wait.
get_closest_enemy will work?
is this function built in? thought i need to write it over with some other keywords
ah wait, just red the comment
Sooo, I need to use "for" loop?
I'd add another condition.
How do I check if object is existing?
Would this work?
get_closest_enemy will work?
is this function built in? thought i need to write it over with some other keywords
ah wait, just red the comment
Sooo, I need to use "for" loop?
Code:
int lowest = 99999;
int final;
for(i = 0; i <= 399; i++)
{
loadTarget(i);
if (xdistance < lowest)
{
lowest = xdistance;
final = i;
}
}
loadTarget(final);
I'd add another condition.
How do I check if object is existing?
Would this work?