Entity::getOffsetFromGivenWorldCoords

From RAGE Multiplayer Wiki
Revision as of 23:41, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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