Page 1 of 1

[question] Random rapid fire script

PostPosted: Wed Sep 15, 2021 2:14 pm
by kevinr1
Hi,

I'm not sure if this is possible. I'd like to have a rapid fire script. However, I'd like the timing between each shot to be random.
This way people won't notice I'm using a rapid fire script, it could arguably be that I'm clicking really fast on the trigger.
Idea:

Shoot, wait 0.01s, shoot, wait 0.05s, shoot, wait 0.08s, shoot.

Can someone create such a simple script for me? I'd like to map the script to my keyboard, example button "H".
If a random timing between each shot is not possible, please can someone provide a simple rapid fire script?

I'm a big noob when it comes to programming. Currently, I already have this script configured in my memory slot.
I assume this script has to be extended with the rapid fire script, so I can use both functionalities in the same memory slot.

Code: Select all
 
#pragma METAINFO("toogle__ads", 1, 0, "somebody")
int toggle_ads;
main {
  if(event_release(7)) toggle_ads = !toggle_ads;
  if(toggle_ads) set_val(7, 100);
}