Author Topic: Continuos Animation  (Read 871 times)

I know how to animate and how to make it work in the script but how do you make it so when you take the weapon out, it keeps playing the animation until you put it away again?

If you must know, this is what i am working on:

I want the crystals around the blade to spin.

I'm sorry I'm not a scripter, but you sir...WIN :D

Great Sword!

Thanks! Bot and I are working on an rpg and I'm making weapons. If only I could get into his server.. It's passworded and he doesn't have irc...

Lol im banned from irc and just unpassworded my server.

Btw epic sword.


Still need help... Does anyone know how to loop animation?!

Iv heard only how to move it with "Blender" it was that action editor. Try some crap in or you might never know what it dose. :D

I know how to animate it... And I use milkshape. I want to know how to make that animation endlessly play.

From what I know all animations endlessly play. Excample

Code: [Select]
//Copy Paste this in the console. View results.
findplaybyname(Makanix).player.playthread(2, armattack);
//To stop input this.
findplaybyname(Makanix).player.playthread(2, root);
Really in my opinion, when the object is created / wielded a scripts plays.
Code: [Select]
%this.playthread(0, cystalsspin);
And you don't stop it with
Code: [Select]
%this.playthread(0, root);I believe this will work, however a second opinion would be nice for yours and mine sake.

Awesome sword.

I believe naming the animation ambient makes it play

From what I know all animations endlessly play. Excample

Code: [Select]
//Copy Paste this in the console. View results.
findplaybyname(Makanix).player.playthread(2, armattack);
//To stop input this.
findplaybyname(Makanix).player.playthread(2, root);
Really in my opinion, when the object is created / wielded a scripts plays.
Code: [Select]
%this.playthread(0, cystalsspin);
And you don't stop it with
Code: [Select]
%this.playthread(0, root);I believe this will work, however a second opinion would be nice for yours and mine sake.

Awesome sword.
thanks for the help but I don't think that is for a weapon animation. And if it is, you would have to type it into the console to make it work and not have it play whenever you take out the sword.

thanks for the help but I don't think that is for a weapon animation. And if it is, you would have to type it into the console to make it work and not have it play whenever you take out the sword.
If you want to use the console you may. Otherwise try this.
Code: [Select]
   // Initial start up state
stateName[0]                     = "Activate";
stateTimeoutValue[0]             = 0.5;
stateTransitionOnTimeout[0]      = "Ready";
stateSound[0]                    = SledgeHammerDrawSound;
        stateScript[0]                     = "Onactivate";

// Other scripting goes here.

};

function SuperSwordImage::onActivate(%this, %obj, %slot)
{
%this.playthread(0, spinningcystals);
}

Ok. The playthread at the bottom says on actvate. Does that mean when you attack? Or take it out? And is it possible to make it play through both?

Ok. The playthread at the bottom says on actvate. Does that mean when you attack? Or take it out? And is it possible to make it play through both?
When you take it out. It will continue until you.

Code: [Select]
function SuperSwordImage::onStop(%this, %obj, %slot)
{
%this.playthread(0, root);
}

Ok thanks I will try this. (when I'm not grounded)