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

Function

engineLoadAsset

ClientGame engineTrilogy Hub only

Loads a game engine (Unreal) asset by path, e.g. a model or a material from the game files. Pass the handle to engineReplaceModel.

Syntax

asset engineLoadAsset(string path)

Arguments

pathstring
The engine asset path.

Returns

The handle or false.

Example

-- ścieżkę zasobu silnika znajdziesz w trybie deweloperskim przez findEngineObject
local asset = engineLoadAsset("/Game/...")
if asset then engineReplaceModel(asset, 411) end

See also