IsAttacking

From the Oblivion ConstructionSet Wiki
Revision as of 10:12, 4 June 2011 by imported>Shademe (Fixed formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 Actor is attacking, but sometimes even longer than IsCasting. So this will not work reliably:
if MyRef.isattacking == 1 && MyRef.iscasting == 0
   message"I am attacking but not casting!"
endif

Use this instead:

if MyRef.AnimPathIncludes "attack" == 1 && MyRef.AnimPathIncludes "cast" == 0
   message"I am attacking but not casting!"
endif


See Also