Creates a network variable on the entity and adds Set/Get functions for it. This function should only be called in ENTITY:SetupDataTables.
- "Int" (32-bit signed integer)
The max slots right now are 64 - so you should pick a number between 0 and 63. An exception to this is strings which has a max slots of 4.
If the table contains a "KeyName" key the value can be set using Entity:SetKeyValue. This is useful if you're making an entity that you want to be loaded in a map. The sky entity uses this.
The edit key lets you mark this variable as editable. See Editable Entities for more information.
Setting up data tables