Difference between revisions of "0176"
Jump to navigation
Jump to search
(New page: {{OpCode | ini = 0176=2,%2d% %1d% | description = Gets the Z angle of the object | p1 = Existing object handle | p2 = Variable to store the angle | game ...) |
(page updates) |
||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|t}} |
− | | description = Gets the | + | | command = GET_OBJECT_HEADING |
− | | | + | | description = Gets the [[heading]] of the object |
− | | | + | | syntax1 = 0176: [''var''] = object [''object handle''] z_angle |
− | | | + | | p1t = [''var''] |
+ | | p1d = Variable to store the heading | ||
+ | | p2t = [''object handle''] | ||
+ | | p2d = The handle of the object | ||
| native = [[GET_OBJECT_HEADING]] | | native = [[GET_OBJECT_HEADING]] | ||
}} | }} | ||
− | |||
− | |||
− | + | This opcode gets the heading (z angle) of the object. | |
− | |||
− | |||
− | |||
− | ==Keywords== | + | {{direction|deg=1}} |
− | get, store, object, angle | + | |
+ | == Keywords == | ||
+ | get, store, object, angle, heading | ||
+ | |||
+ | == See also == | ||
+ | * {{Icon|t}} [[0177]], sets the heading of the object |
Revision as of 19:32, 19 June 2016
- Description
- Gets the heading of the object
- Syntax
- 0176: [var] = object [object handle] z_angle
- Parameter
- [var]
- Variable to store the heading
- [object handle]
- The handle of the object
- Native analog
- GET_OBJECT_HEADING
This opcode gets the heading (z angle) of the object.
Compass | Degrees | Radians |
---|---|---|
North | 0° | 0 |
West | 90° | π/2 ≈ 1.57 |
South | 180° | π ≈ 3.14 |
East | 270° | 3π/2 ≈ 4.71 |
Keywords
get, store, object, angle, heading
See also
- 0177, sets the heading of the object