Trigger API Reference\DCEI Functions\Steam

void Steam.UnlockAchievement(string achievementId)

void Steam.UnlockAchievement(string achievementId)

Description


Unlocks the specified achievement in a Steam game.

Parameters

Example Usage

local achievementId = "DefeatStage3"
if not DCEI.Steam.IsAchievementUnlocked(achievementId) then
    DCEI.Steam.UnlockAchievement(achievementId)
end

bool Steam.IsAchievementUnlocked(string achievementId)

bool Steam.IsAchievementUnlocked(string achievementId)

Description


Checks if the specified achievement is unlocked in a Steam game.

Parameters

Example Usage

local achievementId = "DefeatStage3"
if not DCEI.Steam.IsAchievementUnlocked(achievementId) then
    DCEI.Steam.UnlockAchievement(achievementId)
end

void Steam.SetStatInt(string statId, int data)

void Steam.SetStatInt(string statId, int data)

Description

Parameters

Example Usage

void Steam.SetStatFloat(string statId, float data)

void Steam.SetStatFloat(string statId, float data)

Description

Parameters

Example Usage

int Steam.GetStatInt(string statId)

int Steam.GetStatInt(string statId)

Description

Parameters

Example Usage

float Steam.GetStatFloat(string statId)

float Steam.GetStatFloat(string statId)

Description

Parameters

Example Usage

string Steam.GetId()

string Steam.GetId()

Description

Example Usage

string Steam.GetAvatar(string steamId, int level = 2)

string Steam.GetAvatar(string steamId, int level = 2)

Description

Parameters

Example Usage

string Steam.GetName(string steamId)

string Steam.GetName(string steamId)

Description

Parameters

Example Usage

void Steam.RequestUserInfo(string steamId, bool nameOnly, TypedCallback callback)

void Steam.RequestUserInfo(string steamId, bool nameOnly, TypedCallback callback)

Description

Parameters

Example Usage