Page 1 of 1

Repair animation help?

Posted: 10 Feb 2017, 10:30
by Axebeardbeardaxe
I'm having some trouble trying to get an animation to fire.
I want to add an animation into ui_item_repair that plays when you repair an item. If I can find a generic enough animation, I'll use that, otherwise using the reload animation of the repaired gun would be fine too.

Anyway, I have absolutely no idea how to go about this, any help would be appreciated!

Re: Repair animation help?

Posted: 11 Feb 2017, 04:02
by Alundaio

Code: Select all

   local wpn =
   if (wpn and IsWeapon(wpn)) then

You could try something like that, it should play reload animation for the gun you are holding. But you can only really play animation listed in the hud section of a weapon, like wpn_ak74_hud for example.