like
if
getzoomed =1
then
do this
scn kasdarnightvisonscopescript Short ButtonBegin GameMode Set Button to GetButtonPressed if ( Button == 0 ) Activate endif elseif ( Button == 1 ) imod kasdarnightvisionscope endifEnd
scn kasdarnightvisonscopescriptshort stateshort equippedBegin OnEquipset equipped to 1EndBegin OnUnEqupset equipped to 0EndBegin GameModeif state == 0 if equipped == 0 return endif set state to 1 returnelseif state == 1 if equipped == 0 set state to 0 return endif if player.getAnimAction 7 == 0 return endif imod kasdarnightvisionscope set state to 2 returnelseif state == 2 if equipped == 1 && player.getAnimAction 7 == 1 return endif rimod kasdarnightvisionscope set state to 1 return endifEnd