[0.10.3] Teleport() resets orientation of some entities...
Posted: Mon Jul 14, 2014 11:48 am
...and breaks the others. While it may be intended for reasons unknown, it certainly hinders the modding.
Teleport() resets orientation/direction of some entities (car, player), if someone wanted to reset the entity's orientation he would either set it explicitly or recreate the entity.
Another problem is that teleport would do strange things to other entities, inserts after teleporting off-grid look like abomination, I guess it should snap entities to the grid unless that have "off-grid" flag, like createentity() does. But it workaround-able by recreating said inserter.
Writable "orientation" property of entities that support precise orientation control is an alternative to fixing teleport in case of car/player.
Right now it's not exactly easy to set car's orientation to precise 0.23611 and place that car in a set position with great precision without functional teleport or writable "orientation".
Teleport() resets orientation/direction of some entities (car, player), if someone wanted to reset the entity's orientation he would either set it explicitly or recreate the entity.
Another problem is that teleport would do strange things to other entities, inserts after teleporting off-grid look like abomination, I guess it should snap entities to the grid unless that have "off-grid" flag, like createentity() does. But it workaround-able by recreating said inserter.
Writable "orientation" property of entities that support precise orientation control is an alternative to fixing teleport in case of car/player.
Right now it's not exactly easy to set car's orientation to precise 0.23611 and place that car in a set position with great precision without functional teleport or writable "orientation".