Repair animation help?

Posts: 6
Joined: 17 Jan 2016, 18:20

Repair animation help?

Postby Axebeardbeardaxe » 10 Feb 2017, 10:30

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!

User avatar
Posts: 1371
Joined: 26 May 2012, 22:26

Re: Repair animation help?

Postby Alundaio » 11 Feb 2017, 04:02

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.
"I have a dream that one day this community will rise up and live out the true meaning of its creed: "We hold these truths to be self-evident; that all mods are created equal."

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest