EVENT GETAUTOAIMANGLE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
New page: 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 EVEN...
(No difference)

Revision as of 18:14, 22 January 2007

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

                               // default is 48
ifvare currentweapon 1         // the pistol
   setvar AUTOAIMANGLE 64      // a 'wider' auto-aim angle.

endevent