Difference between revisions of "0170"
Jump to navigation
Jump to search
(New page: {{OpCode | ini = 0170=2,%2d% %1d% | description = Gets the Z angle of the player | p1 = Actor handle | p2 = Variable to store the angle | game = GTA3, ...) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|3}} {{Icon|VC}} |
− | | description = Gets the | + | | command = GET_PLAYER_HEADING |
− | | | + | | description = Gets the [[heading]] of the player |
− | | | + | | syntax1 = 0170: [''var''] = player [''player handle''] z_angle |
− | | | + | | p1t = [''player handle''] |
− | | | + | | p1d = The [[0053|handle of the player]] |
+ | | p2t = [''var''] | ||
+ | | p2d = Variable to store the heading, a floating-point value | ||
}} | }} | ||
− | |||
− | |||
− | + | This opcode gets the heading (z angle) of the player. | |
− | |||
− | |||
− | |||
− | ==Keywords== | + | {{direction|deg}} |
− | get, store, player, angle | + | |
+ | == Keywords == | ||
+ | get, store, player, angle, heading | ||
+ | |||
+ | == See also == | ||
+ | * {{Icon|3}} {{Icon|VC}} [[0171]], sets the heading of the player | ||
+ | * {{Icon|t}} [[0172]], gets the heading of the character |
Latest revision as of 00:12, 20 November 2016
- Description
- Gets the heading of the player
- Syntax
- 0170: [var] = player [player handle] z_angle
- Parameter
- [player handle]
- The handle of the player
- [var]
- Variable to store the heading, a floating-point value
This opcode gets the heading (z angle) of the player.
Compass | Degrees |
---|---|
North | 0° |
West | 90° |
South | 180° |
East | 270° |
Keywords
get, store, player, angle, heading