steam_ugc_subscribe_item


Description

This function can be used to subscribe to a UGC item. You supply the published file ID and then the function returns a unique async ID value which can be used to check when the subscribed item has been downloaded in the Steam Async event. This event will have the async_load DS map which will be populated with the following key/value pairs:


Syntax:

steam_ugc_subscribe_item(published_file_id);

Argument Description
published_file_id The unique file ID for the UGC to subscribe to.


Returns:

Async ID


Example:

steam_sub = steam_ugc_subscribe_item(global.pubFileID);

The above code will subscribe (and download) the item with the file ID stored in the global variable "pubFileID".