Garry's Mod Wiki

WEAPON:SetupDataTables

void 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: 23ms

Session 0
DB GetPage 4
Generate Html 0
SaveChanges 10
Render Body 0
Render Sidebar 6