I’ve searched through the forums and couldn’t find anything helped me on this one. I’m sure it’s simple enough, but it’s driving me crazy.
function PercentageMultiplier(multiplier : float){
for(var i = 0; i<10; i++){
multiplier + .01;
yield WaitForSeconds(1);
}
}
I’m getting an error on the 3rd line reading: Expressions in statements must only be executed for their side-effects. The variable exists, and if I comment that line out, it’s fine. I’ve seen people have the same error, but it seems they’ve always just set up their for loop up wrong. Any ideas?