Garry's Mod Wiki

baseclass

The baseclass library. Used to lookup a field from a metatable.

Methods

table baseclass.Get( string name )
Gets the base class of an an object. This is used not just by entities, but also by widgets, panels, drive modes, weapons and gamemodes (with "gamemode_" prefix). The keyword DEFINE_BASECLASS translates into a call to this function. In the engine, it is replaced with: local BaseClass = baseclass.Get
baseclass.Set( string name, table tab )
Add a new base class that can be derived by others. This is done automatically for: widgets panels drive modes entities weapons gamemodes (with prefix "gamemode_")

Page Links


Special Pages


Wikis

?

Render Time: 82ms

DB GetPage 53
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 14