IsAttacking

Revision as of 20:18, 26 April 2009 by imported>Shademe (→‎Notes: Returns true while power attacking)


A command for Oblivion Script Extender

Syntax:

(IsAttacking:bool) actor:ref.IsAttacking

Returns 1 if the calling actor is attacking.

Notes

  • Will return 1 while the player is attacking, sometimes even longer than IsCasting. Probably true for other actors as well.
  • Will return 1 for a few frames while the player is power attacking as well. In cases where a normal and a power attack is to be differentiated, onControlDown and isControlPressed can be substituted for isAttacking and isPowerAttacking respectively, with appropriate checks.

See Also