Revision Difference
weapons.Register#552054
<function name="Register" parent="weapons" type="libraryfunc">
	<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 <page>scripted_ents.Register</page> for Scripted Entities (SENTs)
<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>
	<file line="46-L106">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>
			Garry's Mod 
		
			Rust 
		
			Steamworks 
		
			Wiki Help