TitusBlaze Posted July 14, 2016 Share Posted July 14, 2016 Ok so I am editing a trigger bot for my own use. :TRIG_15 wait 0 if 0AB0: key_pressed 6 else_jump @TRIG_186 as you can see by that code that when you press RMB the mod does its magic. I want to make it that first you must activate the mod eg by pressing f10 then when I press RMB the mod does its magic but when the mod is deactivated it does not do its magic when I press RMB. Thank you reading. (if you need more snippets tell me) Link to comment Share on other sites More sharing options...
Sloth- Posted July 14, 2016 Share Posted July 14, 2016 You can replace the trigger condition: if 0AB0: key_pressed 6 else_jump @TRIG_186 by if and0AB0: key_pressed [email protected] == 1 // Some unused variable that will represent if f10 was pressed or notelse_jump @TRIG_186 Additionally, you must integrate this piece of code: if 0AB0: key_pressed x // where x must be the number that represent f10then while 0AB0: key_pressed x wait 0 end if @28 == 1 then @28 = 0 else @28 = 1 endend Where to put this block? Well, your code must be a loop checking everytime if you presed RMB, isn´t it? So you must put the block in a part of the loop that is executing always. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now