Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Use Animation - A Config Script for Garry's Mod

10 236 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
local function VNTUseAnimations( ply , ent )

    if IsValid( ply ) and ply:Alive( ) and ply:IsPlayer( ) then

        ply:DoAnimationEvent( ACT_GMOD_GESTURE_ITEM_GIVE )

    end

end
hook.Add( "PlayerUse" , "UseAnims" , VNTUseAnimations )

Updates

Update 2 1y
  • Improvement Added a few more validity checks
Update 1 1y Improvement

Play an animation when you use an object

This script will make your player model play an animation when you use your use key on an object such as a door or button.

There are no binds required, as it does it automatically.

Video

Also available on Steam Workshop

No comments yet