Garry's Mod Wiki

Revision Difference

baseclass.Set#561731

<function name="Set" parent="baseclass" type="libraryfunc"> <description> Add a new base class that can be derived by others. This is done automatically for: * widgets * panels * drive modes * entities * weapons * gamemodes (with prefix "gamemode_") ⤶ For more information, including usage examples, see the <page>BaseClasses</page> reference page.⤶ </description> <realm>Shared and Menu</realm> <file line="43-L58">lua/includes/modules/baseclass.lua</file> <args> <arg name="name" type="string">The name of this base class. Must be completely unique.</arg> <arg name="tab" type="table">The base class.</arg> </args> </function>