An abstract base class from which all the animation controllers inherit. It has all the functionality needed to control the timing and update animations.
This type inherits the following: niObject
If the controller is active. When inactive, the target does not get updated and animation timing does not advance.
How the time parameter passed to the update function is treated. Type 0 is the default, which treats the update time as a delta time. Type 1 treats the update time an offset from the start of the animation.
Maps to values in
The animation cycle type. Type 0 is looping, type 2 is reverse, type 4 is clamped.
Maps to values in
The animation controller's frequency value. It is a scaling value used to convert from update time units to keyframe time units, if necessary.
This is the end animation key time of the animation controller.
This function returns the last scaled time computed by this controller. The scaled time takes the
phase into account, along with the
animTimingType. This is the last value used to interpolate animation keys.
This is the beginning animation key time of the animation controller.
The next animation controller in the list of controllers containing the calling controller.
The phase value. It is an offset applied to the animation's update time, in seconds.
Read-only. The number of references that exist for this object. When this value reaches zero, the object will be deleted.
Read-only. The runtime type information for this object. This is an alias for the
Read-only. The runtime type information for this object.
The time at which the animation controller starts playing its animation.
Read-only. The scene graph object that this animation controller is to animate.
Creates a copy of this object.
local result = myObject:clone()
Determines if the object is of a given type, or of a type derived from the given type.
local result = myObject:isInstanceOfType(type)
Determines if the object is of a given type.
local result = myObject:isOfType(type)
Serializes the object, and writes it to the given file.
local success = myObject:saveBinary(path)
path(string): The path to write the file at, relative to the Morrowind installation folder.
success(boolean): If true the object was successfully serialized.
This method assigns a new target to the animation controller.
target(niObjectNET): The new target to assign.
Starts the controller at the specified time. Intended for controllers with
animTimingType of 1.
Stops the controller. If you only want to pause the controller, use the
Created: August 10, 2021 18:38:47