how can i reset an integer value, i have already clamped it but the problem is that when i say the minimum is 0 and the maximum is 3 then it goes only to 3 but it wont reset itself to 0.
asked Apr 28 '15 at 11:15 PM in Blueprint Scripting
if you want an integer to loop around, instead of using clamp, you should use the modulus operator, which gives you the remainder after division.
so if your integer is X, and you want to keep it looping between 0 and 3, you can set X to equal "X mod 4" or
X = X % 4;
Follow this question
Once you sign in you will be able to subscribe for any updates here