Play Morph Target Animation
Specify the morph target animation you want to play. Reset will force to start a new Animation if even if the same Animation is already running (Resets Timer).
Use Target Value will override the default behaviour (Morphing from min to max).
Target Value will still respect the min and max that was set (Clamped between these values).
Inputs | Type | Info |
---|---|---|
Target | EasyMorphComponent Reference | |
MorphTargetAnimation | Name | Name of the Morph Target Animation to play. |
Duration | Float | How long the animation from to the Target Morph should be (in Seconds) |
Reset | Bool | Forces the animation to restart even if it is already running. Will reset timer, but still start from currrent Morph Values. |
UseTargetValue | Bool | Whether the default (setup) value of the morph should be overridden by the TargetValue Parameter. |
TargetValue | Float | Value to use instead of the default (setup) target value. |
Replication
This function also comes in 3 replicated variants:
- Play Morph Target Animation Multicast
- Play Morph Target Animation On Client
- Play Morph Target Animation Server Command
Generally, you would want the server to execute the Play Morph Target Animation Multicast Node. The logic behind how this call is made is up to your game design.
We also provide an "On Client" and a "Server Command" variant for ease of use.
The "On Client" variant plays the Morph Target Animation only on the owning Client.
The "Server Command" variant is a quick way to have any player start a Morph Target Animation on their Character (through a key input as an example). However, there is no additional server-side logic to check whether the player is allowed to play this Morph Target Animation. The Server Command does a plain rerouting of the Play Morph Target Animation to all Clients.
In short, build your own Server logic and then call the Multicast variant from the Server as a Best Practice.