Hello
I have this script on a map where I want two leaders to add 1 and 7 to a local int, when int is 8 a Swing door should unlock.
But instead I just get the error "Unexpected token "{"" when I try to launch the game map.
Here is the script:
void AddLocalVarInt(string& Unlock, int alVal);
{
        if(GetLocalVarInt("Unlock")==8)
        {
           SetLevelSwingDoorLocked(mansion_1, false);
           
        }
}    
void OnLeverStateChange(string &in Lever1, int alState)
{
    AddDebugMessage(Lever1 + "'s current state: " + alState, false);
    if (alState == -1)
    {
     AddLocalVarInt("Unlock", 1);
    }
}
Thank you for your help