Author Topic: On Fire - Arm Animation (Solved)  (Read 484 times)

Simple question:

What part of the code depicts if the arm comes up after a weapon is fired?
I need to be able to turn it off, but I can't find the area of the code that controls this.
« Last Edit: January 15, 2013, 07:38:53 PM by Mr.Noßody »

In the datablock for the weapon's fire sequence there should be an animation entry that you can remove.

In the datablock for the weapon's fire sequence there should be an animation entry that you can remove.

Yeah, I looked there but found no line for the default 'armraise' animation.
Can you give me a specific line to look for?

Oh, I found it.
It was tucked away in an added function.

Code: [Select]
function UhuhuhuImage::onFire(%this,%obj,%slot)
{
if(%obj.getDamagePercent() < 1.0)
%obj.playThread(2, shiftAway);
Parent::onFire(%this,%obj,%slot);
}