Revision Difference
weapons.Register#528620
<function name="Register" parent="weapons" type="libraryfunc">
<description>
Used to register your SWEP with the engine.
<bug pull="1300">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.</bug>
</description>
<realm>Shared</realm>
<file line="46-L105">lua/includes/modules/weapons.lua</file>⤶
<args>
<arg name="swep_table" type="table">The SWEP table</arg>
<arg name="classname" type="string">Classname to assign to that swep</arg>
</args>
</function>