Author Topic: Animation Playback in-game???  (Read 820 times)

Alright, Ive animated a model in blender, and exported to DTS, but I dont know which Function Im supposed to use to make my animations actually playback in-game. Ive tried %obj.playThread, and it DOES NOT work. This code below does nothing in-game:
Code: [Select]
function UberrifleImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, Action);
Parent::onFire(%this,%obj,%slot);
}

function UberrifleImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, Actrion);
Parent::onFire(%this,%obj,%slot);
}


function UberrifleImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, Ation);
Parent::onFire(%this,%obj,%slot);
}
I am not sure why its not working, but it isnt. If Im using the wrong code, please tell me which one I should be using and give an example of the proper syntax. Thanks.
NOTE: There are no spelling mistakes in the names of the threads; I did that on purpose simply because the names blender gave the animations by default caused a syntax error (EG: Action.001)
« Last Edit: June 20, 2010, 11:50:41 AM by takato14 »

I don't think you can call animations for a weapon outside of the image states.

I don't think you can call animations for a weapon outside of the image states.
uh... Meaning its all in the weapon image? How do I call those..... State sequence? And if so, can I call Multiple Sequences in the same state (like stateSequence[0, 1 2 3 etc] or otherwise?

Nevermind, I got it working. Thanks Flesk :3

Nevermind, I got it working. Thanks Flesk :3
Hey send me the model and ill try animation's(Hint-upload to mediafire)

Hey send me the model and ill try animation's(Hint-upload to mediafire)
Nevermind, I got it working. Thanks Flesk :3


Hey send me the model and ill try animation's(Hint-upload to mediafire)
Im not sending you anything. I dont even know you.