punkmaio.blogg.se

Gmod file read by spaces lua
Gmod file read by spaces lua





gmod file read by spaces lua

An example of this is the HL2 "weapon_pistol", which is based off the "weapon" class, which is based off the "anim" class, which is based off the "entity" class. As more classes are created, a baseclass tree begins to form. Most classes have a baseclass, from which they inherit their properties. Things like Vectors and ConVars are also classes but they aren't created from files, which is the purpose of this tutorial. Examples of classes are Entities, Weapons (which are just fancy entities), and Panels. What is an Object?Īn object in programming is a collection of data which is organized and structured in a specific manner and is derived from a class. Though this tutorial focuses on application in GMod, the code and concepts can be used elsewhere. This tutorial discusses the methods used by Garry's Mod to define new objects classes from files.







Gmod file read by spaces lua