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 edit summary
Line 4: Line 4:


Default value for AUTOAIMANGLE is 48.
Default value for AUTOAIMANGLE is 48.


Example:
Example:


 
onevent EVENT_GETAUTOAIMANGLE
onevent EVENT_GETAUTOAIMANGLE
 
getplayer[THISACTOR].curr_weapon TEMP
                                // default is 48
  ifvare TEMP PISTOL_WEAPON      // the pistol
  ifvare currentweapon 1        // the pistol
     setvar AUTOAIMANGLE 64      // a 'wider' auto-aim angle.
     setvar AUTOAIMANGLE 64      // a 'wider' auto-aim angle.
 
endevent
endevent


[[Category:Events]]
[[Category:Events]]

Revision as of 18:46, 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

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

endevent