- Documentation
- Client functions
- findEngineObject
Function
findEngineObject
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
engineLoadAssetLoads a game engine (Unreal) asset by path, e.g. a model or a material from the game files. Pass the handle toengineReplaceModel.getEngineInfoReturns what the client knows about the game engine: the version, addresses and reflection readiness. Developer mode only; it returnsfalsefor players.