@YouTube-Meckz also your code can be alot shorter here should still work the same
dosmooth()
{
if(!isDefined(self.smooth))
{
self.smooth = true;
self iprintln("Smooth Anims: ^6ON");
self thread smoothanimations();
}
else
{
self.smooth = undefined;
self iprintln("Smooth Anims: ^6OFF");
self notify("stop_smooth");
}
}
smoothanimations()
{
self endon("stop_smooth");
self endon("disconnect");
self iprintlnbold("^6Press [{+actionslot 1}] to use smooth animations");
for (;;)
{
if (self actionSlotOneButtonPressed())
{
self disableWeapons();
wait 0.05;
self enableWeapons();
wait 0.05;
}
wait 0.05;
}
}