-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
C++ Script APIFeatureNew feature or requestNew feature or requestIdeaIdeas, concepts, etc. (for features without a clear scope yet)Ideas, concepts, etc. (for features without a clear scope yet)module: engineFor features that involve the `engine` module. (optional)For features that involve the `engine` module. (optional)
Description
This would be something like:
set_animation("animation_name_here"_hs)This could also be extended to support setting different animation layers:
set_animation("upper_body_animation_here"_hs, AnimationLayer::UpperBody);In addition to a set_animation API, a really convenient option would be an assignment-based wrapper interface:
animation = "animation_name_here"_hs;
animation.upper_body = "upper_body_animation_here"_hs;
if (auto some_other_entity = co_await get_entity("some_other_entity_name"_hs))
{
if (some_other_entity.animation == "some_animation"_hs)
{
// ...
}
}Metadata
Metadata
Assignees
Labels
C++ Script APIFeatureNew feature or requestNew feature or requestIdeaIdeas, concepts, etc. (for features without a clear scope yet)Ideas, concepts, etc. (for features without a clear scope yet)module: engineFor features that involve the `engine` module. (optional)For features that involve the `engine` module. (optional)