Game Development Community

Firing at player in 3rd person

by Andy Hawkins · in Torque Game Engine · 05/08/2008 (4:28 pm) · 1 replies

I've noticed that unless enemies are facing directly at me their shots aren't very accurate.

How do I make a projectile fire at the player's position regardless of the enemy's forward direction?

#1
05/12/2008 (12:50 am)
Well, you can trivially use like %obj.getPosition or getTransform to get the player's position, and then fire at that.