Essentials Series/Simple Objects: Difference between revisions

Content added Content deleted
Line 28: Line 28:
# Add your animation(s) to the ALST.
# Add your animation(s) to the ALST.
# Create a SIMP if you haven't already, and set the Model_AssetID of the SIMP to the [[MODL]] you want it to use. Set the Animation_AssetID of the SIMP to the ALST's.
# Create a SIMP if you haven't already, and set the Model_AssetID of the SIMP to the [[MODL]] you want it to use. Set the Animation_AssetID of the SIMP to the ALST's.
# When you want the animation to play, send the AnimPlay [[../Links/|event]] to the SIMP for it to play once or AnimPlayLoop for it to continue playing. The first argument of the link should be the index of the animation in the ALST. This index is 1-based, meaning 1 is the first animation in the ALST (animation 0), 2 is the second (animation 1), etc.
# When you want the animation to play, send the AnimPlay [[../Links/|event]] to the SIMP for it to play once or AnimPlayLoop for it to continue playing. The first argument of the link should be the index of the animation in the ALST. This index is 1-based, meaning 1 is the first animation in the ALST, 2 is the second, and so on.


This information also applies to other Entity assets, such as [[../Platforms/]], which can also play animations. Note that the asset's collision will '''not''' move along with the animation. This is meant to be used only on unsolid SIMPs.
This information also applies to other Entity assets, such as [[../Platforms/]], which can also play animations. Note that, for the asset's collision to move along with the animation, you must set Animate Collision, under Solidity Flags, to true.


=== Drivenby ===
=== Drivenby ===