Changing an agent's skeleton mid-mission

Users who are viewing this thread

ShortJake

Recruit
Can an agent skeleton be changed after the agent has been built?
I tried using AgentVisuals.SetSkeleton() but the character becomes all wonky with all the bones pointing to the right. And many functions cause the game to crash such as SetActionSet.
This occurs even when using the native human_skeleton and not my custom skeleton.
When assigning a skeleton I get a bunch of assertion errors related to sampling quats.

Edit: Here's what I mean. At the end is an empty entity that I created and then assigned the original skeleton to it. It seems like the animation system still recognizes that skeleton as the agent's skeleton.
 
Last edited:
Back
Top Bottom