Skip to content

Position desync with dead playersย #928

Open
@Einheit-101

Description

@Einheit-101

Describe the bug
getElementPosition() returns wrong values server side when a player is dead.

To reproduce

  1. Go to editor
  2. Use Jetpack, fly into the air
  3. Use srun getElementPosition(me) -> Notice how your z position is pretty high
  4. Kill the player
  5. The player will fall to the earth (Client side Z position ~13.3)
  6. Server-side getElementPosition(me) will still return the coordinate where the player died

Expected behaviour
getElementPosition() should not return the death position, it should return the current position because it can happen that a dead player moves away from his death position, for example when falling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions