Instant Morph Target Animation
Instantly apply the final value of a set up Morph Target Animation.
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 apply. |
UseTargetValue | Bool | Whether to use the default value or override it with the TargetValue. |
TargetValue | Float | A Value to use instead of the default one. |
Replication
This function also comes in 3 replicated variants:
- Instant Morph Target Animation Multicast
- Instant Morph Target Animation On Client
- Instant Morph Target Animation Server Command
Generally, you would want the server to execute the Instant 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 applies the Morph Target only on the owning Client.
The "Server Command" variant is a quick way to have any player apply a Morph Target Value 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 Morph or anything. The Server Command does a plain rerouting of the Instant 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.