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 ...) |
|||
| (2 intermediate revisions by one other user not shown) | |||
| 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 = [''object handle''] | |
| + | | p1d = The handle of the object | ||
| + | | p2t = [''var''] | ||
| + | | p2d = Variable to store the heading | ||
| native = [[GET_OBJECT_HEADING]] | | native = [[GET_OBJECT_HEADING]] | ||
}} | }} | ||
| − | |||
| − | |||
| − | + | This opcode gets the heading (z angle) of the object. | |
| − | |||
| − | |||
| − | |||
| − | ==Keywords== | + | {{direction|deg}} |
| − | get, store, object, angle | + | |
| + | == Keywords == | ||
| + | get, store, object, angle, heading | ||
| + | |||
| + | == See also == | ||
| + | * {{Icon|t}} [[0177]], sets the heading of the object | ||
Latest revision as of 00:13, 20 November 2016
- Description
- Gets the heading of the object
- Syntax
- 0176: [var] = object [object handle] z_angle
- Parameter
- [object handle]
- The handle of the object
- [var]
- Variable to store the heading
- Native analog
- GET_OBJECT_HEADING
This opcode gets the heading (z angle) of the object.
| Compass | Degrees |
|---|---|
| North | 0° |
| West | 90° |
| South | 180° |
| East | 270° |
Keywords
get, store, object, angle, heading
See also
0177, sets the heading of the object