IsAnimPlaying

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: IsAnimPlaying.

A function included in the GECK version 1.1.0.36.

Description

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

[help]
(0, 1:int) [ObjectRefID].IsAnimPlaying AnimGroup:Animation (optional)

Example

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