Static function
Slow
Entity.Inherit
Inherits this class with the <a href='/docs/core-concepts/scripting/inheriting-classes'>Inheriting System</a>
Syntax
Entity.Inherit(name, custom_values = {})
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
name
|
string | — | The name of the new Class |
custom_values
optional
|
table | {} |
An optional table with custom values to be set in the inherited class table |
Returns
-
table
classThe new Class table