So ibasically i am trying to get this
##click
= (FireGuns)`
##counter
= click = 1 ? Add 1 : (0)
click pressed and released 4 times counter should be 4
how should i go about doing this?
If click remains one it should only add 1
Also how do i make a memory? so it remembers the previous action?
@winterro Also, for memory, the easiest is a locking variable:
CannonAmmoSelectedWeapon="[put name here]" ? ammo(SelectedWeapon) : CannonAmmoor, for any purpose:
VariableName ---> condition ? A : VariableNamei just recently found out how to use this for example to store the value of how much ammo you have of a certain type and stores that value even if the activating boolean returns 0. if it doesn't activate, or behaves jerky, add
smooth([activation condition],1/[Time in s(best a really small value)])=1. that should fix it.@Grob0s0VBRa aight, i'll try that!
Try this:
counterrepeat(counter+( (clamp01(rate(FireGuns)>0))!=0?1:0),5)click=clamp01(rate(FireGuns)>0)