Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
aim
From Quake Wiki
vector aim(entity e, float missilespeed)
Returns a vector along which the entity e can shoot. Usually, e is a player, and the vector returned is calculated by auto-aiming to the closest enemy entity.