Difference between revisions of "IsAttacking"
Jump to navigation
Jump to search
imported>Haama (More links) |
imported>Shademe (→Notes: Returns true while power attacking) |
||
Line 9: | Line 9: | ||
== Notes == | == Notes == | ||
* Will return 1 while the player is attacking, sometimes even longer than [[IsCasting]]. Probably true for other actors as well. | * 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 == | == See Also == |
Revision as of 20:18, 26 April 2009
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.