|
| 30 Dec 2016 11:29 PM |
| How would I do this? I have a brick size, X. I have a max brick size, Z. I have a amount, P. I have an needed amount, L. How would I make it, so that X is scaled off of P and L? Like if # ## %50 to L, then # ## %50 to Z? |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 11:32 PM |
| Can you resay the examples? They were hashtagged a bit. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 11:33 PM |
I have a max brick size, Z. I have another brick size, Y. I have an amount, K. I have a needed amount, H.
How would I make Y scaled onto Z, the way K is scaled onto H?
Like K is %50 to H, then Y is %50 the length of Z? |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 11:39 PM |
Nevermind, was a ton simpler than I thought it was :3
local s = needed/exp.Value local size = max.Size.X/s |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2016 11:39 PM |
Like K is %50 to H, then Y is %50 the length of Z?
So if H%50 = K then Z%50 = Y?
Do you want this to be shown in one equation, or two? Is it alright if I use an if statement, or just an equation? |
|
|
| Report Abuse |
|
|
| |
|