Hey everyone. I apologize if i have posted in the wrong forum/subforum, i am new here as you can see. Now, i am a novice modder-nothing serious. However, i want to make the spread of weapons increase with every shot fired. Is that possible?
Please take into account that i am a complete newbie when it comes to scripting.
Could anyone tell me how this could be done, presented with examples? I would really appreciate the help.
Thanks for reading this, and thanks even more if you actually help me do this

EDIT: Guys, I think i've figured at least one half of this out. Now my pistol's recoil gets worse when im firing, now i only need to make it stop when im not firing
Code:
if ( spread < 10 ) {
spread = spread + 1;
}
I just had to put this code right after playAnim in the Fire state.
Now my idea for making the spread lower when you don't fire is... While the weapon is in the IDLE state, wait 0.3 seconds and lower spread by 1. If spread is 1, make spread 1 again and again. I think this should work

EDIT2: It did work
