Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Preventing the action if steam not found

  • #1, by Mateusz 6 years ago Zitieren
    I need to prevent users from executing certain action in case game was launched from disk rather than from under the steam launcher. I was thinking about creating a value (lets say named "steam_found") and setting it to either 0 (when client is not launched) or 1 (when it's launched). The problem is that currently the only "0" in the equation are my programming skills. Can someone plese tell me how to modify the Steam script in a way that instead of "print" it will set the forementioned value?
    if getProperty("steam_initialized") then 
    print("Steam has been found!")
    else 
    print("No Steam anywhere to be seen")
    end 
    
  • #2, by sebastian 6 years ago Zitieren
    Values["my_steam_value_name"].Int = 1

    smile
  • #3, by Mateusz 6 years ago Zitieren
    Thank you!!! Works perfectly.