Catalyst Gaming

General => Support & Help => Topic started by: retrocity77 on January 09, 2014, 09:06:50 PM

Title: Scripting a gun
Post by: retrocity77 on January 09, 2014, 09:06:50 PM
So i started off basic and got this script... although i have no idea how to reload my gun... any tips you could give me?
Title: Re: Scripting a gun
Post by: wakeboarderCWB on January 09, 2014, 09:45:12 PM
What's your script look like? Be sure to use the Reload() hook.

http://wiki.garrysmod.com/page/WEAPON/Reload
Title: Re: Scripting a gun
Post by: retrocity77 on January 10, 2014, 04:40:31 PM
This is a website i started off from, now i went on my own and i cant figure it out...

http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8e50.html
Title: Re: Scripting a gun
Post by: wakeboarderCWB on January 10, 2014, 04:50:23 PM
Take a look at this hook and example.
http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1bed.html

The hook is used when you press whatever button is bound to +reload, and in the hook you simply handle animations, clips, etc.
Title: Re: Scripting a gun
Post by: retrocity77 on January 10, 2014, 08:06:29 PM
ok, thanks for the help wake
SimplePortal 2.3.7 © 2008-2025, SimplePortal