Difference between revisions of "GET VIEWPORT POSITION OF COORD"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Native |np=5 |p1t = float |p1d = x |p2t = float |p2d = y |p3t = float |p3d = z |p4t = integer |p4d = viewport handler |p5t = float |p5d = x scr...")
 
 
Line 10: Line 10:
 
|p4d    = viewport handler
 
|p4d    = viewport handler
 
|p5t    = float
 
|p5t    = float
|p5d    = x screen handler (0-1)
+
|p5d    = x projection
 
|p6t    = float
 
|p6t    = float
|p6d    = y screen handler (0-1)
+
|p6d    = y projection
 
}}
 
}}
  
This function gets 2D screen position of in-game 3D coordinates.
+
This function gets 2D viewport position of in-game 3D coordinates.

Latest revision as of 15:32, 1 August 2021

GET_VIEWPORT_POSITION_OF_COORD
Number of parameters: 5
Parameter #TypeDescription
1.floatx
2.floaty
3.floatz
4.integerviewport handler
5.floatx projection
6.floaty projection
Return value:
TypeDescription
None

This function gets 2D viewport position of in-game 3D coordinates.