Author Topic: Milkshape question?  (Read 553 times)

If i add an animation in milkshape...how do i call to use it in a script?

You would have to name reload it when exporting, and then:


Code: [Select]
function WEAPONNAMEWeapon::onAdd(%this,%obj)
{
%obj.playthread(0, reload);
}
« Last Edit: January 06, 2011, 09:39:53 PM by TheKhoz »

Okay, would it be possible to have more then one animation?

Yes.

Just do this:

You would have to name animation it when exporting, and then:


Code: [Select]
function WEAPONNAMEWeapon::onAdd(%this,%obj)
{
%obj.playthread(0, animation);
}


Thank you.
Don't forget that you need to set how long that animation is. Like, if the reload is from 1-15 and then the other animation is from 16-30.

Don't forget that you need to set how long that animation is. Like, if the reload is from 1-15 and then the other animation is from 16-30.
im guessing the 1-15 and 16-30 are seconds?