Difference between revisions of "IsAnimPlaying"

From GECK

 
(Description)
Line 1: Line 1:
 
=='''Description'''==
 
=='''Description'''==
  
'''IsAnimPlaying''' returns a 1 if the calling object is currently playing an animation. When the optional animGroup parameter is passed, script function returns 1 only if the specified animation group is playing.
+
'''IsAnimPlaying''' returns a 1 if the calling object is currently playing an animation. When the optional [[AnimGroups|animGroup]] parameter is passed, script function returns 1 only if the specified Animation Group is playing.
  
 
=='''Syntax'''==
 
=='''Syntax'''==

Revision as of 00:52, 22 December 2008

Description

IsAnimPlaying returns a 1 if the calling object is currently playing an animation. When the optional animGroup parameter is passed, script function returns 1 only if the specified Animation Group is playing.

Syntax

[ActorREF.] IsAnimPlaying animGroup (optional)

Examples

if myActivator.isAnimPlaying == 1
 ; myActivator is currently playing (any) animation.
endif

if myActivator.isAnimPlaying forward == 1
 ; myActivator is currently playing the forward animation
endif

Personal tools