Difference between revisions of "0170"
Jump to navigation
Jump to search
m |
m |
||
Line 2: | Line 2: | ||
| ini = 0170=2,%2d% %1d% | | ini = 0170=2,%2d% %1d% | ||
| description = Gets the Z [[angle]] of the player | | description = Gets the Z [[angle]] of the player | ||
− | | p1 = | + | | p1 = Player handle |
| p2 = Variable to store the angle | | p2 = Variable to store the angle | ||
| game = GTA3, Vice City | | game = GTA3, Vice City | ||
Line 16: | Line 16: | ||
==Keywords== | ==Keywords== | ||
get, store, player, angle | get, store, player, angle | ||
+ | |||
+ | [[Category:OpCodes]] |
Revision as of 20:10, 28 December 2008
{{{games}}}
- Description
- Gets the Z angle of the player
- Syntax
- {{{syntax1}}}
- Parameter
This gets the Z angle of the player and stores it into a variable. The angle is in degrees. This opcode does not work in San Andreas so use 0172 instead. Note that the parameters are swapped.
Sanny Builder example:
0170: 0@ = player $PLAYER_CHAR Z_angle
Note
The above format is more commonly used. The actual format of this opcode is in order:
0170=2,%1d% %2d%
The format to use depends on which INI file you use.
Keywords
get, store, player, angle