Difference between revisions of "IsAttacking"

2 bytes added ,  10:12, 4 June 2011
m
Fixed formatting
imported>SpookyFX
imported>Shademe
m (Fixed formatting)
 
Line 10: Line 10:
* Will return 1 while the Actor is attacking, but sometimes even longer than [[IsCasting]]. So this will not work reliably:
* 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


if MyRef.isattacking == 1 && MyRef.iscasting == 0
Use this instead:


message"I am attacking but not casting!"
if MyRef.AnimPathIncludes "attack" == 1 && MyRef.AnimPathIncludes "cast" == 0
 
    message"I am attacking but not casting!"
endif
endif
 
 
[[Use this instead:]]
 
if MyRef.AnimPathIncludes "attack" == 1 && MyRef.AnimPathIncludes "cast" == 0
 
message"I am attacking but not casting!"
 
endif




Anonymous user