Garry's Mod Wiki


  DEFINE_BASECLASS( string value )


A preprocessor keyword that is directly replaced with the following text:

local BaseClass = baseclass.Get

Because this is a simple preprocessor keyword and not a function, it will cause problems if not used properly

See baseclass.Get for more information.

The preprocessor is not smart enough to know when substitution doesn't make sense, such as: table keys and strings.

Running print("DEFINE_BASECLASS") will result in local BaseClass = baseclass.Get

For more information, including usage examples, see the BaseClasses reference page.


1 string value
Baseclass name