Hii all,
I have written the following script. I checked "Run on load" to true. When
I launch the client see the message:
Hey great, I found UrbanFemale. but do not see the available animation.
But when i go to view -> scene -> UrbanFemale. -> AnimationController ->
functions -> GetAvailableAnimations()
It shows me the animation "Walk".
var entityNameToFind = "UrbanFemale.";
function ShowAnimation()
{
var objectToAnimate = scene.GetEntityByName(entityNameToFind);
console.LogInfo("Hey great, I found " + entityNameToFind );
var availableAnims =
objectToAnimate.animationcontroller.GetAvailableAnimations();
console.LogInfo(availableAnims);
}
if (!server.IsRunning() && !framework.IsHeadless())
{
StartAnimation();
}
Also, when i run the script view -> scene -> UrbanFemale. -> Script -> Run()
This runs the script and shows the message:
Hey great, I found UrbanFemale.
Walk
Am I missing anything??
~Vaibhav
--
http://groups.google.com/group/realxtend
http://www.realxtend.org