WEAPON:SetupDataTables

From Garry's Mod
Jump to: navigation, search
 WEAPON:SetupDataTables( )

Description

Called when the SWEP should set up its Data Tables.

Examples

Example

Sets up networked variables, adds functions SetDamage, GetDamage, SetMuzzlePos and GetMuzzlePos.

function SWEP:SetupDataTables()
	self:NetworkVar( "Float", 0, "Damage" )
	self:NetworkVar( "Vector", 0, "MuzzlePos" )
end


Personal tools
Navigation