Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "aim"

From Quake Wiki

m (Spirit moved page Aim to aim: lowercase)
Line 1: Line 1:
vector '''aim'''(entity ''e'', float ''missilespeed'')
+
====Syntax:====
 +
<code>vector aim(entity e, float speed)</code>
  
Returns a vector along which the entity ''e'' can shoot.
+
Used for player weapons and links to the sv_aim console variable for autoaim.
Usually, ''e'' is a player, and the vector returned is calculated by auto-aiming to the closest enemy entity.
+
====Parameters:====
 +
:<code>f</code> - The float value to convert
 +
====Returns:====
 +
:Returns a vector along which the entity ''e'' can shoot. The vector is calculated based on the sv_aim console variable to the closest enemy entity.
 +
 
 +
 
 +
[[Category:QuakeC Function]]

Revision as of 02:57, 3 April 2013

Syntax:

vector aim(entity e, float speed)

Used for player weapons and links to the sv_aim console variable for autoaim.

Parameters:

f - The float value to convert

Returns:

Returns a vector along which the entity e can shoot. The vector is calculated based on the sv_aim console variable to the closest enemy entity.