feat: Adding the ability to play misc angled animations based on character direction #714
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature
Similarly to how walk & speak animations can be played based on an esc_item's direction angle, using the
anim_by_angle
command allows for anesc_item
to play an animation based on its angle.anim_by_angle bob take_low
anim_by_angle_block bob take_low
This command will make the
esc_item
with global id "bob" play the directionally appropriate "take_low" animation assigned to the character'sAngled Animations
Array.Angled Animations
is meant to be used as an array ofESCAngledAnimationResource
, which is a data object taking ananimation_name
String (in this case, "take_low", like picking something off the ground), and ananimations
Array ofESCAnimationName
objects.How To Test
Angled Anims
array and assign aESCAngledAnimationResource
to the array.anim_by_angle {characterName} {animationName}
in a .esc script