ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. findEngineObject

Function

findEngineObject

ClientGame engineTrilogy Hub only

Searches game engine objects by a name or path fragment and returns a list of hits. Developer mode only; it returns false for players.

Syntax

table findEngineObject(string fragment [, int limit = 20, bool byPath = true])

Arguments

fragmentstring
A name fragment.
limitint, optional = 20
How many results.
byPathbool, optional = true
Search in the path.

Returns

A list of hits or false.

Example

for _, hit in ipairs(findEngineObject("infernus", 5) or {}) do outputConsole(tostring(hit)) end

See also