* Set the orientation of a unit. * * Stack: 1 - New orientation for unit. * * @param script The script engine to operate on. * @return The current orientation of the unit (it will move to the requested over time). */
| 705 | * @return The current orientation of the unit (it will move to the requested over time). |
| 706 | */ |
| 707 | uint16 Script_Unit_SetOrientation(ScriptEngine *script) |
| 708 | { |
| 709 | Unit *u; |
| 710 | |
| 711 | u = g_scriptCurrentUnit; |
| 712 | |
| 713 | Unit_SetOrientation(u, (int8)STACK_PEEK(1), false, 0); |
| 714 | |
| 715 | return u->orientation[0].current; |
| 716 | } |
| 717 | |
| 718 | /** |
| 719 | * Rotate the unit to aim at the enemy. |
nothing calls this directly
no test coverage detected