23.01.2018, 20:06
well the maths aren't that hard to do.
The offset will be (on any coordinate or rotation) Keypadvaluehere - atmvaluehere.
For example, lets say the atm has the following set of data:
and the keypad might have this:
the you know that the values: keypad - atm = difference/delta/offset (whatever you call it)
10.5-10.0 = 0.5 ---> This means the keypad x-coordinate will always be 0.5 units higher than the atm value.
13.0-15.0 = -2.0 ---> This shows that the keypad will always be 2 units lower in the y-axis every time.
....
and so on.
Create the first keypad on any of the ATM's
Get the offsets
Apply this to all coordinates. (you can do CreateObject(objid, 12.214 + offset, 12414.501 + offset) - if the offset is negative, add the minus instead.)
Voila!
The offset will be (on any coordinate or rotation) Keypadvaluehere - atmvaluehere.
For example, lets say the atm has the following set of data:
Код:
CreateObject(atmobject, 10.0, 15.0, 20.0, 1.0, 2.0, 3.0);
Код:
CreateObject(keypadobj, 10.5, 13.0, 35.0, 9.0, 1.0, 5.0);
10.5-10.0 = 0.5 ---> This means the keypad x-coordinate will always be 0.5 units higher than the atm value.
13.0-15.0 = -2.0 ---> This shows that the keypad will always be 2 units lower in the y-axis every time.
....
and so on.
Create the first keypad on any of the ATM's
Get the offsets
Apply this to all coordinates. (you can do CreateObject(objid, 12.214 + offset, 12414.501 + offset) - if the offset is negative, add the minus instead.)
Voila!