so i’v been trying to get my enemy to fire a projectile at the players current location, however atm all iv been able to do it make my enemy shoot where its facing. This would normally be fine, however it doesnt take into account the players z axis so the player can avoid the monsters projectiles by being slightly above or below the monster.
This is my current code on attempting to direct the projectile at the player but its failing at the casting. anyone know how to fix this or know a proper way of making a projectile launch at the players current position?
Any help would be great! Thanks in advance -Unholypimpin