Forum Discussion

ScottNodine-109's avatar
ScottNodine-109
Community Member
3 months ago
Solved

SetVar and GetVar March 2025 Update Question

Before I update my Storyline installation to the March 18, 2025 (Build 3.98.34222.0) build, can someone tell me if SetVar and GetVar will still work? I ask because in the Advanced Storyline support...
  • CharlotteHasler's avatar
    3 months ago

    Hey,

    I've also tried it and I didn't have to change the old version as long as it's used with getting the player first

    var player = GetPlayer();
    player.GetVar("name");
    player.SetVar("name", value);

    The new functions are working without getting the player

    getVar("name");
    setVar("name", value);