XIM Community

XIM 4 => XIM 4 Discussions => Commander => Topic started by: bjbama on 09:47 AM - 04/07/20

Title: Script Timer
Post by: bjbama on 09:47 AM - 04/07/20
Hey guys,

Having some issues with setting a toggle with the settimer fuction.  The script works perfectly outside of sandhawc but ingame it isn't able to read the updated toggle variable.  Is there something I'm doing wrong?

Code: [Select]
F5::
    if(isSpecialBReady){
        isSpecialBReady := False
        doSpecialB()               
        SetTimer, flipIsSpecialBReady, 60000
    }
    if(isSpecialXReady){
        isSpecialXReady := False
        doSpecialX()       
        SetTimer, flipIsSpecialXReady, 20000
    }
   
    sleep 25
    Send, b
    sleep 25
    Send, x   
    sleep 25
    Send, x     
    Sleep 250
return

Thanks so much if you can help!