Preventing the action if steam not found

  • #1, by MateuszFriday, 22. November, 04:10 3 weeks ago
    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
    1
    2
    3
    4
    5
    6

    Newbie

    43 Posts


  • #2, by sebastianFriday, 22. November, 07:54 3 weeks ago
    Values["my_steam_value_name"].Int = 1

    smile

    Thread Captain

    2328 Posts

  • #3, by MateuszFriday, 22. November, 08:40 3 weeks ago
    Thank you!!! Works perfectly.

    Newbie

    43 Posts

Write post