Page 1 of 1

Mob Distance and Combat Flag

Posted: Tue Dec 07, 2010 8:31 am
by S3v3n11
What variables can I use to check the distance of my current target ( mob) and whether or not I am in combat?

Thanks!

Re: Mob Distance and Combat Flag

Posted: Tue Dec 07, 2010 8:55 am
by jduartedj
S3v3n11 wrote:What variables can I use to check the distance of my current target ( mob) and whether or not I am in combat?

Thanks!
the is a distance function, it takes your x,z coordinates and targets,x,z coordinates. So use player.X,player.Z target.X, target.Z

playet.Battling should be the "in Combat" flag