Recalculate integer?

Hello,

i need some help in math in scripting.

i got this:

            int z = i - y * distance * distance - x * distance;

i want this (i dont know if it is correct):

int i = z + y / distance / distance + x / distance;

The first code gives me z by using (i, y, x and distance).
If i dont have ā€œiā€ i want to calculate it but how?

Thank you :slight_smile:

If

z = i - ydd - xd

then

i = ydd + xd + z
2 Likes

Thank you, you saved my Day :smile: with this single line i boosted my script 1000%, reuse data that allready is there with math :smile:

1 Like