May 20, 2024, 04:08:52 PM
Home
Portal
Help
Search
Forums
Index
Servers
Information
Garry's Mod
Steam
Group
Downloads
Server Files
Login
Member Login
Register
You are here:
Catalyst Gaming
»
General
»
Support & Help
»
Scripting a gun
« previous
next »
Print
Pages: [
1
]
Author
Topic: Scripting a gun (Read 4133 times)
retrocity77
Scripter
Gold Member
Posts: 49
Scripting a gun
«
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?
Logged
How much swag could a Swag Cow swag if a swag cow could swag, swag?
wakeboarderCWB
Gold Member
Posts: 2,486
Awards
Re: Scripting a gun
«
Reply #1 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
Logged
retrocity77
Scripter
Gold Member
Posts: 49
Re: Scripting a gun
«
Reply #2 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
Logged
How much swag could a Swag Cow swag if a swag cow could swag, swag?
wakeboarderCWB
Gold Member
Posts: 2,486
Awards
Re: Scripting a gun
«
Reply #3 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.
Logged
retrocity77
Scripter
Gold Member
Posts: 49
Re: Scripting a gun
«
Reply #4 on:
January 10, 2014, 08:06:29 PM »
ok, thanks for the help wake
Logged
How much swag could a Swag Cow swag if a swag cow could swag, swag?
Print
Pages: [
1
]
« previous
next »
You are here:
Catalyst Gaming
»
General
»
Support & Help
»
Scripting a gun
SimplePortal 2.3.7 © 2008-2024, SimplePortal