Zorkaz Posted February 1, 2020 Share Posted February 1, 2020 I'm doing a message box where you can say "Yes" and "No" On clicking yes, a script should run and disable something. But how do I do that, since there's only the option to add a condition Link to comment Share on other sites More sharing options...
SKKmods Posted February 1, 2020 Share Posted February 1, 2020 The script that shows the message needs to handle the result, example; Function MainMenu() Int iButton = pSKK_MWMMenu.Show() If (iButton == 0) ;Cancel ;do nothing ElseIf (iButton == 1) ;Load markers StartMWM() ElseIf (iButton == 2) ;UnLoad markers StopMWM() ElseIf (iButton == 3) ;Create Attack Marker CreateAttackMarker() ElseIf (iButton == 4) ;Remove nearest marker RemoveCreatedMarker() ElseIf (iButton == 5) ;Remove all created markers ResetAllMarkers() EndIf EndFunction Link to comment Share on other sites More sharing options...
Zorkaz Posted February 1, 2020 Author Share Posted February 1, 2020 Thanks SKK50 just found out myself ;) Can't believe I never needed that until now Link to comment Share on other sites More sharing options...
Recommended Posts