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: 38ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 7
Render Body 0
Render Sidebar 19