Difference between revisions of "GET CHAR HEADING"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=2 |p1t=handle |p1d=char handle |p2t=float |p2d=variable to store char heading }} Gets character heading in degrees. {| {{Prettytable}} |- ! Heading ! Compass Direction |- ...)
 
(testing direction template)
Line 7: Line 7:
 
}}
 
}}
  
Gets character heading in degrees.
+
Gets the character's heading in degrees.
  
{| {{Prettytable}}
+
{{direction|deg=1}}
|-
 
! Heading 
 
! Compass Direction
 
|-
 
| 0
 
| North
 
|-
 
| 90
 
| West
 
|-
 
| 180
 
| South
 
|-
 
| 270
 
| East
 
|}
 

Revision as of 04:23, 3 February 2011

GET_CHAR_HEADING
Number of parameters: 2
Parameter #TypeDescription
1.handlechar handle
2.floatvariable to store char heading
Return value:
TypeDescription
None

Gets the character's heading in degrees.

Compass Degrees Radians
North 0
West 90° π/2 ≈ 1.57
South 180° π ≈ 3.14
East 270° 3π/2 ≈ 4.71