Garry's Mod Wiki

Revision Difference

weapons.Register#512208

<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>⤶ <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>⤶ ⤶