'GetAssetID' function (EN) - Archie-osu/ProjectDELTA GitHub Wiki

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);
⚠️ **GitHub.com Fallback** ⚠️