Garry's Mod Wiki
The baseclass library. Used to lookup a field from a metatable.
Methods
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. GetYou should prefer using this instead of self. BaseClass to avoid infinite recursion.
For more information, including usage examples, see the BaseClasses reference page.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated twice a day. Edits and history are not available.
Last Parsed: Loading...