kinda specific problem
#2

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:
Код:
CreateObject(atmobject, 10.0, 15.0, 20.0, 1.0, 2.0, 3.0);
and the keypad might have this:
Код:
CreateObject(keypadobj, 10.5, 13.0, 35.0, 9.0, 1.0, 5.0);
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!
Reply


Messages In This Thread
kinda specific problem - by wallee - 23.01.2018, 16:29
Re: kinda specific problem - by denNorske - 23.01.2018, 20:06
Re: kinda specific problem - by wallee - 24.01.2018, 06:42
Re: kinda specific problem - by denNorske - 24.01.2018, 09:13
Re: kinda specific problem - by Sew_Sumi - 24.01.2018, 09:44
Re: kinda specific problem - by wallee - 25.01.2018, 10:20
Re: kinda specific problem - by VeryTallMidget - 25.01.2018, 11:05
Re: kinda specific problem - by wallee - 25.01.2018, 19:12
Re: kinda specific problem - by Nero_3D - 25.01.2018, 20:35
Re: kinda specific problem - by RedFusion - 25.01.2018, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)