Garry's Mod Wiki

weapons.Register

weapons.Register( table swep_table, string classname )

Description

Used to register your SWEP with the engine.

Sub-tables provided in the first argument will not carry over their metatable, and will receive a BaseClass key if the table was merged with the base's. Userdata references, which includes Vectors, Angles, Entities, etc. will not be copied.

Arguments

1 table swep_table
The SWEP table
2 string classname
Classname to assign to that swep

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 12