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:
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)