DEFINE_BASECLASS
Example
Showcase Demonstration from the sandbox gamemode code
Output: Original Spawning Mechanics with the addition that players now spawn with
player_sandbox
classGenerates and provides a local variable BaseClass
that can be used to call the original version of a class functions after modifying it.
This is a preprocessor keyword that is directly replaced with the following text:
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.
Running print("DEFINE_BASECLASS")
is the same as print("local BaseClass = baseclass.Get")
For more information, including usage examples, see the BaseClasses reference page.
Showcase Demonstration from the sandbox gamemode code
player_sandbox
class