I'm fairly certain this document is wrong on the final line, it should be GlobalVariables.Instance.SetVariableValue instead of GlobalVariables.Instance.SetVariable as shown correctly in this other page https://opsive.com/support/documentation/behavior-designer/referencing-scene-objects/