Entity::getOffsetFromGivenWorldCoords

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Converts world coords (posX - Z) to coords relative to the entity

Example:
posX is given as 50
entity's x coord is 40
the returned x coord will then be 10 or -10, not sure haven't used this in a while (think it is 10 though).

Syntax

entity.getOffsetFromGivenWorldCoords(posX, posY, posZ);

Required Arguments

  • posX: float
  • posY: float
  • posZ: float

Return value

  • Vector3

Example

// todo

See also