Here's a rebased version of Christy Lock's code which will animate the bot:
Add the following code to the Bot_API.cs in the Botmanager module:
public void botAnimate(string bot, string AnimationUUID)
{
m_host.ParentEntity.Scene.ForEachScenePresence(delegate(IScenePresence sp)
{
// this should be the bot id
if (sp.UUID == UUID.Parse(bot))
{
sp.Animator.AddAnimation(UUID.Parse(AnimationUUID), UUID.Zero);
}
});
}
No comments:
Post a Comment