Entity::getOffsetFromGivenWorldCoords: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 13: Line 13:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 17:55, 1 May 2024

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