From Garry's Mod
Revision as of 14:18, 27 February 2013 by Facepunch bot
Sets up a self.dt.NAME alias for a Data Table var
The type of the DTVar being set up. It can be one of the following: 'Int', 'Float', 'Vector', 'Angle', 'Bool', 'Entity' or 'String'
The ID of the DTVar. Can be between 0 and 3
Name by which you will refer to DTVar. It must be a valid variable name. (No spaces!)
Sets up two float networked variables, TargetZ and Speed
function ENT:SetupDataTables() self:DTVar( "Float", 0, "TargetZ" ); self:DTVar( "Float", 1, "Speed" ); end