Entity:get
Gets a Component from the Entity.
Gets a Component from the Entity.
component = entity:get( name )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string | Name of the ComponentClass to get |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
component |
Component|nil | The Component, or nil if the Entity does not have it |