Entity:__index(Entity, string)

shared
Metamethod that is called when a non existing field is indexed

Arguments

Returns

  • any The value of the field

Examples

Entity:__index – Metamethod that is called when a non existing field is indexed