Trying to play a custom animation when the right mouse button is clicked.
package itemShake
{
function Armor::onTrigger(%this,%obj,%slot,%val)
{
Parent::onTrigger(%this,%obj,%slot,%val);
if(%slot == 4 && %val)
{
if(%obj.getMountedImage(0) == ItemImage1.getID())
{
%obj.playThread(0, "ShakeEntry");
}
}
}
};
activatePackage(itemShake);
I figure the problem is with the playThread method but I've looked at examples and resources and everything I try won't work :P so I just left it as is.