ok i have a lil problem. let me explain what im trying to do.
a NPC, thats a mob....mob/Basic_Troop/B
the thing im trying to attack....mob/Tree/T
i want B to attack T...then bring the loot back
to a house like area..that stores all loot.
i just dont know if i should be using get_step or oview. ive tried looking into the enemy AI stuff. but i cant seem to get it to work. any help?
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
also you can use get_dist to find the distance between the mobs and objects. I would aslo use dir to point the character into the trees direction. I would place all of this in a while loop.
while(src)meaning while the src exists the loop runs.
this could be used to check if there is a mob in the view of 6 tiles .
then you could use get_step or get_dist to check if there is an obj or mob 1 tile or less away
and use
I am not sure if this helps there could be errors in my examples and advice since I havent done any byond coding in like 3-4 months