Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Expressions in statements must only be executed for their side-effects.

$
0
0
Hey everyone. So I was writing this really long script(some parts copied other self written) to make a tank move with the correct physics and such, when I came across the error above. I know that the error means I don't need a certain part of it or that it's not being used/called. But I can't seem to find the issue! Here's the script(only showing the part where the error is but willing to post it all if needed): function (currentForwardFriction : float , currentSidewayFriction : float) { wheelL1.forwardFriction.stiffness = currentForwardFriction; wheelL2.forwardFriction.stiffness = currentForwardFriction; wheelL3.forwardFriction.stiffness = currentForwardFriction; wheelL4.forwardFriction.stiffness = currentForwardFriction; wheelL5.forwardFriction.stiffness = currentForwardFriction; wheelL6.forwardFriction.stiffness = currentForwardFriction; wheelL7.forwardFriction.stiffness = currentForwardFriction; wheelL8.forwardFriction.stiffness = currentForwardFriction; wheelR1.forwardFriction.stiffness = currentForwardFriction; wheelR2.forwardFriction.stiffness = currentForwardFriction; wheelR3.forwardFriction.stiffness = currentForwardFriction; wheelR4.forwardFriction.stiffness = currentForwardFriction; wheelR5.forwardFriction.stiffness = currentForwardFriction; wheelR6.forwardFriction.stiffness = currentForwardFriction; wheelR7.forwardFriction.stiffness = currentForwardFriction; wheelR8.forwardFriction.stiffness = currentForwardFriction; wheelL1.sidewayFriction.stiffness = currentSidewayFriction; wheelL2.sidewayFriction.stiffness = currentSidewayFriction; wheelL3.sidewayFriction.stiffness = currentSidewayFriction; wheelL4.sidewayFriction.stiffness = currentSidewayFriction; wheelL5.sidewayFriction.stiffness = currentSidewayFriction; wheelL6.sidewayFriction.stiffness = currentSidewayFriction; wheelL7.sidewayFriction.stiffness = currentSidewayFriction; wheelL8.sidewayFriction.stiffness = currentSidewayFriction; wheelR1.sidewayFriction.stiffness = currentSidewayFriction; wheelR2.sidewayFriction.stiffness = currentSidewayFriction; wheelR3.sidewaysFriction.stiffness = currentSidewayFriction; wheelR4.sidewaysFriction.stiffness = currentSidewayFriction; wheelR5.sidewayFriction.stiffness = currentSidewayFriction; wheelR6.sidewayFriction.stiffness = currentSidewayFriction; wheelR7.sidewayFriction.stiffness = currentSidewayFriction; wheelR8.sidewayFriction.stiffness = currentSidewayFriction; }

Viewing all articles
Browse latest Browse all 7934

Trending Articles