Difference between revisions of "PlayGamebryoAnimation - ObjectReference"
Jump to navigation
Jump to search
imported>Qazaaq (animation category) |
|||
Line 31: | Line 31: | ||
DoorRef.PlayGamebryoAnimation("Forward", afEaseInTime = 1.0) | DoorRef.PlayGamebryoAnimation("Forward", afEaseInTime = 1.0) | ||
</source> | </source> | ||
== Notes == | |||
Gamebryo animations do not persist through a game load. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Latest revision as of 18:01, 11 February 2024
Member of: ObjectReference Script
Plays a legacy nif file based animation, optionally starting the animation over from the beginning with the specified ease-in time.
Syntax[edit | edit source]
bool Function PlayGamebryoAnimation(string asAnimation, bool abStartOver = false, float afEaseInTime = 0.0) native
Parameters[edit | edit source]
- asAnimation: The animation to play.
- abStartOver: Should the animation start over from the beginning?
- Default: false
- afEaseInTime: The amount of time to take to ease-in the animation, in seconds.
- Default: 0.0
Return Value[edit | edit source]
True if the animation was started.
Examples[edit | edit source]
; Play the forward animation, don't start over, and don't ease it in
DoorRef.PlayGamebryoAnimation("Forward")
; Play the forward animation and ease it in over 1 second
DoorRef.PlayGamebryoAnimation("Forward", afEaseInTime = 1.0)
Notes[edit | edit source]
Gamebryo animations do not persist through a game load.