Please ignore the previous part..

On Tue, Mar 27, 2012 at 3:29 PM, Vaibhav Vaidya
<[email protected]>wrote:

> 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

Reply via email to