Garry's Mod Wiki

Garry's Mod Wiki

  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

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 four times a day. Edits and history are not available.

Last Parsed: Loading...