Difference between revisions of "IsAttacking"

Jump to navigation Jump to search
28 bytes added ,  17:14, 29 May 2011
no edit summary
imported>SpookyFX
imported>SpookyFX
Line 10: Line 10:
* Will return 1 while the player is attacking, sometimes even longer than [[IsCasting]]. Thus this will not work:
* Will return 1 while the player is attacking, sometimes even longer than [[IsCasting]]. Thus this will not work:


'''Syntax:'''
if MyRef.isattacking == 1 && MyRef.iscasting == 0
if MyRef.isattacking == 1 && MyRef.iscasting == 0
message"I am attacking but not casting!"
message"I am attacking but not casting!"
Line 16: Line 17:
Use this instead:
Use this instead:


'''Syntax:'''
if MyRef.AnimPathIncludes "attack" == 1 && MyRef.AnimPathIncludes "cast" == 0
if MyRef.AnimPathIncludes "attack" == 1 && MyRef.AnimPathIncludes "cast" == 0
message"I am attacking but not casting!"
message"I am attacking but not casting!"
Anonymous user

Navigation menu