Skip to content

Train carriages: setElementPosition desync #574

Open
@ArranTuna

Description

@ArranTuna

Describe the bug
Setting a trains serverside position will only work as long as the train is synced in. As soon as it's not synced in anymore the train will simply not move away from the last set position in the players sync radius.

Sometimes, if you set even more positions for example over a timer, you can see the train switching from frame to frame to the new position it should be and back to the position it originally spawned with its carriages. I guess the carriage position does not get updated which causes those bugs.

This only happens when you have carriages attached, if they are not attached it works as expected.

Jusonex has already reproduced it. I am just posting this bugreport to have it somewhere noted down.
To reproduce

Expected behaviour

Screenshots

Version

Additional context

From https://bugs.mtasa.com/view.php?id=8742

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsync

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions