Animation Effect

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(Details)
(Script required to enable or disable an animation effect.)
Line 8: Line 8:
  
 
===Explanations and default values===
 
===Explanations and default values===
The animation effect is used to define the animation for a mesh.
+
The animation effect is used to define the animation for a mesh. Usually, the animation will be controlled by a script related to the asset.
  
 
kind
 
kind
Line 30: Line 30:
 
:Compulsory.  
 
:Compulsory.  
  
 +
Comment: (by pcas1986)  Animation effects do not seem to work without use of a script.
  
 
[[Category:Config Container]]
 
[[Category:Config Container]]

Revision as of 17:57, 15 September 2016

The Animation effect kind is a "mesh-table" Container effect container. The following tags are supported:

kind "animation"
name ""
anim ""
looped 0
speed 1.0

Explanations and default values

The animation effect is used to define the animation for a mesh. Usually, the animation will be controlled by a script related to the asset.

kind

Text. The kind name for this effect container.
Compulsory "animation".

name

Text. A name for this effect container. This name can be used in scripts.
Optional. Default ""

anim

Name. The name of an animation (.kin) file included with this asset
Compulsory.

looped

Boolean. 0 (false) = the animation executes once when triggered, then stops. 1 = the animation restarts when it reaches the end.
Compulsory.

speed

Value. A multiplier for the execution rate of the animation.
Compulsory.

Comment: (by pcas1986) Animation effects do not seem to work without use of a script.

Personal tools