Skip to content

Incorrect position in some functions after "Fix CVector..." (ZYX instead of XYZ in createBuilding and getElementsWithinRange). #3895

Closed
@ZbyK77

Description

@ZbyK77

Describe the bug

Since the last update, buildings are being created at reversed coordinates from those entered (X/RX is swapped with Z/RZ). The same issue affects getElementsWithinRange, which returns elements at a different position than the one provided. It's most likely broken by the "Fix CVector optional arguments - #3738 (#3782)" update.

Steps to reproduce

  1. run
building = createBuilding(6295,10,20,30,0,0,90);
iprint("position",getElementPosition(building));
iprint("rotation",getElementRotation(building)) 
  1. Look at result

Version

Multi Theft Auto v1.6-release-22837

Additional context

Image

Relevant log output

"position" 30 20 10  
"rotation" 90 0 0

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions