PointEntity() in BMax

BlitzMax Forums/BlitzMax Beginners Area/PointEntity() in BMax

Ferret(Posted 2006) [#1]
Hi,

How can i do something like PointEntity(enemy,target) in BMax?

I need a direction for the enemy to move towards the player.

Thx


Diablo(Posted 2006) [#2]
use atan or atan2

i'm sure theres some homing missile code about you could look at in the code archives