weapons.Register
From GMod Wiki
![]() | |
weapons.Register is an internal function. This means you will be able to call it, but you really shouldn't. |
Function | |
Syntax |
weapons.Register( Table weapon_table, String weapon_name, Boolean reload ) Where is this used? |
Description: | |
Registers a SWEP. | |
Returns: | nil |
Part of Library: | Weapons |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Weapons.Register]Weapons.Register [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | N/A | ||
---|---|---|---|
Used on | ![]() | ||
Code |
| ||
Output | N/A |
Notes
- This is an internal function - you should not need to call this. It can be used for adding a bunch of simple SWEPs that are based off a master SWEP, such as a bunch of CS:S SWEPs based of a master CS:S base.
- If reload is false and the swep already exists, nothing will happen.