Garry's Mod Wiki

DEFINE_BASECLASS

  DEFINE_BASECLASS( string value )

Description

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") is the same as print("local BaseClass = baseclass.Get")

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

Arguments

1 string value
Baseclass name