Difference between revisions of "0170"
Jump to navigation
Jump to search
(page updates) |
m |
||
Line 1: | Line 1: | ||
− | {{Icon|3}} {{Icon|VC}} | + | {{OpCode |
− | + | | games = {{Icon|3}} {{Icon|VC}} | |
− | + | | command = GET_PLAYER_HEADING | |
− | + | | description = Gets the [[heading]] of the player | |
− | + | | syntax1 = 0170: [''var''] = player [''player handle''] z_angle | |
− | + | | p1t = [''var''] | |
− | + | | p1d = Variable to store the heading, a floating-point value | |
− | + | | p2t = [''player handle''] | |
− | + | | p2d = The [[0053|handle of the player]] | |
− | + | }} | |
− | |||
− | This opcode gets the heading ( | + | This opcode gets the heading (z angle) of the player. |
− | {{direction|deg | + | {{direction|deg}} |
== Keywords == | == Keywords == | ||
get, store, player, angle, heading | 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 |
Revision as of 01:11, 11 November 2016
- Description
- Gets the heading of the player
- Syntax
- 0170: [var] = player [player handle] z_angle
- Parameter
- [var]
- Variable to store the heading, a floating-point value
- [player handle]
- The handle of the player
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