Garry's Mod Wiki


  DEFINE_BASECLASS( string value )


This is not a function. This is a preprocessor keyword that translates to:

local BaseClass = baseclass.Get( "my_weapon" )

If you type DEFINE_BASECLASS( "my_weapon" ) in your script.

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


1 string value
Baseclass name