train.m Object
Posted: Wed Jun 05, 2019 9:18 am
How does the train.m object works exactly?
If I place a customized train object (Replaced models: train.m, train2.m, train3.m; Replaced NCP: train.ncp; Replaced sounds: train.wav, whistle.wav) on my map on location (a1), it moves in one direction, until it reach point (z1). It respawns on point (y1) and move to point (z1) again. From this time, it always move from (y1) to (z1).
I wasn't able to find out, why the object stop moving at point (z1), and I also was not able to find out why it respawns at point (y1).
If I place a second train object at location (a2), it moves to (z2), it respawns at (y2), move to (z2) again, and so on.
The strange thing is: (a1) and (a2) are on different axis. (y1) and (y2) are on the same axis, as well (z1) and (z2).
If I place train objects at (a3), (a4), (a5), (a6), and so on, it always react the exactly same way as described above: Stop at z, respawn at y.
Maybe the y and z axis are hardcoded?
Here a picture for better understanding:
If I place a customized train object (Replaced models: train.m, train2.m, train3.m; Replaced NCP: train.ncp; Replaced sounds: train.wav, whistle.wav) on my map on location (a1), it moves in one direction, until it reach point (z1). It respawns on point (y1) and move to point (z1) again. From this time, it always move from (y1) to (z1).
I wasn't able to find out, why the object stop moving at point (z1), and I also was not able to find out why it respawns at point (y1).
If I place a second train object at location (a2), it moves to (z2), it respawns at (y2), move to (z2) again, and so on.
The strange thing is: (a1) and (a2) are on different axis. (y1) and (y2) are on the same axis, as well (z1) and (z2).
If I place train objects at (a3), (a4), (a5), (a6), and so on, it always react the exactly same way as described above: Stop at z, respawn at y.
Maybe the y and z axis are hardcoded?
Here a picture for better understanding: