Skip to content

Implement convenient API for changing animations from C++ scripts #86

@ImmutableOctet

Description

@ImmutableOctet

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

Labels

C++ Script APIFeatureNew feature or requestIdeaIdeas, concepts, etc. (for features without a clear scope yet)module: engineFor features that involve the `engine` module. (optional)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions