List of Opcodes: Difference between revisions
→0x12e - supervision_ExecuteCommon: Added description for supervision_ExecuteCommon Tags: Mobile edit Mobile web edit |
→0x150 - Turn2DirectionTurn: Added description for Turn2DirectionTurn Tags: Mobile edit Mobile web edit |
||
| Line 6,037: | Line 6,037: | ||
|} | |} | ||
=== 0x150 - Turn2DirectionTurn === | === 0x150 - Turn2DirectionTurn === | ||
Makes an actor turn at a certain angle. | |||
This opcode does not have a parameter for an entity, as it must be used in a with-statement or a targeted routine. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 6,049: | Line 6,051: | ||
|1 | |1 | ||
|uint | |uint | ||
| | |speed | ||
| | |How fast the actor turns. The higher the number, the slower the turn. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |rotationdirection | ||
| | |The way that the actor will turn to face the specified direction. 1 = clockwise, 2 = counterclockwise, 10 = the most efficient direction to turn. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |angle | ||
| | |1: 45 degrees left, 2: 45 degrees right, 3: 90 degrees right, 4: 90 degrees left, 5: 180 degrees | ||
|} | |} | ||
=== 0x151 - Turn3 === | === 0x151 - Turn3 === | ||
<TO DO: Opcode description> | <TO DO: Opcode description> | ||