nanos world API Reference Unofficial documentation
Static function Shared Slow

Entity.Inherit

Inherits this class with the <a href='/docs/core-concepts/scripting/inheriting-classes'>Inheriting System</a>

Syntax

Lua
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 class The new Class table