Garry's Mod Wiki
Description
Registers a Scripted Weapon (SWEP) class manually. When the engine spawns an entity, weapons registered with this function will be created if the class names match.
See also scripted_ents.Register for Scripted Entities (SENTs)
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 ENT
The SWEP table to register.
For the table's format and available options see the SWEP structure page.
For the table's format and available options see the SWEP structure page.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...