Garry's Mod Wiki

WEAPON:SetupDataTables

WEAPON:SetupDataTables()

Description

Called when the SWEP should set up its Data Tables.

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

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 5
Generate Html 1
SaveChanges (1) 12
Render Body 0
Render Sidebar 12