Skip to content
This repository was archived by the owner on Jul 30, 2023. It is now read-only.

'GetAssetID' function (EN)

Archie edited this page May 23, 2021 · 1 revision

GetAssetID function

Get the master ID of an asset

Syntax

<RValue> GetAssetID(
    <string> AssetName,
);

Parameters

AssetName

Type: String

The name of the asset, such as obj_mainchara or obj_savepoint.

Return Value

Type: RValue

The given asset ID, stored in an RValue.

Example

local Asset = GetAssetID("obj_savepoint"); -- Get the Asset ID of obj_savepoint.
print(Asset.realval);

Clone this wiki locally