Garry's Mod Wiki

Revision Difference

Global.DEFINE_BASECLASS#528998

<function name="DEFINE_BASECLASS" parent="Global" type="libraryfunc"> <description> This is not a function. This is a preprocessor keyword that translates to: ``` local BaseClass = baseclass.Get("my_weapon") local BaseClass = baseclass.Get( "my_weapon" ) ``` If you type `DEFINE_BASECLASS("my_weapon")` in your script. If you type `DEFINE_BASECLASS( "my_weapon" )` in your script. See <page>baseclass.Get</page> for more information. </description> <realm>Shared and Menu</realm>⤶ <args> <arg name="value" type="string">Baseclass name</arg> </args> <realm>Shared and Menu</realm>⤶ </function>