- Joined
- Oct 18, 2007
- Messages
- 930
Mathmatics help!
Need to calculate that if the number is high the end value is low, but not to low
I need this calculation really bad for my slide effect.
Example:
Lets say a radius of 300 around a point, and a unit has the distance 172. from it to the center of the point.
!( If the unit is at 0 distance the End value needs to be 5 "Can be 6" if it is at 300 then the end value should be 0)!
The Unit will move the end value every 0.01 Secconds!
Tip for calculation: In the end, all units should be in the exact distance from the unit to the center point!!
what do i need to calculate in the Trigger Editor to get the right value??
[+] rep will be given to the one that solves this
Here is the map if that would make it any better (Edit: Updated the test map for more advanced Testing)
THE MATH VALUES IN THE MAP ARE NOT CORRECT, THE MATH PROBLEMS IS WHAT YOU NEED TO SOLVE!
Need to calculate that if the number is high the end value is low, but not to low
I need this calculation really bad for my slide effect.
Example:
Lets say a radius of 300 around a point, and a unit has the distance 172. from it to the center of the point.
!( If the unit is at 0 distance the End value needs to be 5 "Can be 6" if it is at 300 then the end value should be 0)!
The Unit will move the end value every 0.01 Secconds!
Tip for calculation: In the end, all units should be in the exact distance from the unit to the center point!!
what do i need to calculate in the Trigger Editor to get the right value??
[+] rep will be given to the one that solves this

Here is the map if that would make it any better (Edit: Updated the test map for more advanced Testing)
THE MATH VALUES IN THE MAP ARE NOT CORRECT, THE MATH PROBLEMS IS WHAT YOU NEED TO SOLVE!
Attachments
Last edited: