10.04.2019, 22:29
So I have a system in my server where people can create doors which can be opened and closed.
People can also place the door anywhere to their liking after it has been created with the usage of the SelectObject function.
Problem is, when the door is moved by the player, the new location is not returned by GetDynamicObjectPos.
This results in the door not being openable while standing next to it on it's new location, the door can still be opened while standing on the old location by pressing the open key.
Any idea why the old location of the object is returned and not the new location of the object?
People can also place the door anywhere to their liking after it has been created with the usage of the SelectObject function.
Problem is, when the door is moved by the player, the new location is not returned by GetDynamicObjectPos.
This results in the door not being openable while standing next to it on it's new location, the door can still be opened while standing on the old location by pressing the open key.
Any idea why the old location of the object is returned and not the new location of the object?