EVENT GETAUTOAIMANGLE

From EDukeWiki
Revision as of 18:46, 22 January 2007 by TX (talk | contribs)
Jump to navigation Jump to search

Called when the auto aim angle is desired for the weapon.

Set AUTOAIMANGLE to zero to disable auto-aim for the weapon.

Default value for AUTOAIMANGLE is 48.

Example:

onevent EVENT_GETAUTOAIMANGLE

getplayer[THISACTOR].curr_weapon TEMP
ifvare TEMP PISTOL_WEAPON      // the pistol
   setvar AUTOAIMANGLE 64      // a 'wider' auto-aim angle.

endevent