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

No ads for members. Membership is 100% free. Sign up!
10 199 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
local function VNTUseAnimations( ply , ent )

    if IsValid( ply ) then

        ply:DoAnimationEvent( ACT_GMOD_GESTURE_ITEM_GIVE )

    end

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

Updates

Update 1 15d
  • Improvement Added validity checks

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
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager
Offline
16,937 points Ranked 327th
33 medals 1 legendary 6 rare
  • 2019 Top Contributor Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
Wrote the Script

Submitter

Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager
Away
16,937 points Ranked 327th
33 medals 1 legendary 6 rare
  • 2019 Top Contributor Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
Reverend V92 avatar
Reverend V92

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Attributes

Language
Lua

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 7.6k
  • 5y
  • 15d
  • 15d

More from Submitter

WiPs by Submitter

More Other/Misc Scripts