set_control_rotation
Set a controller's control rotation in an active PIE session to aim the view and control-driven facing. Target a pawn's controller, a named controller, or the default PlayerController.
Instructions
Set a Controller's control rotation (AController::SetControlRotation) in the active PIE session -- aims the view and, for a possessed pawn, its control-driven facing. Targets the named pawn's controller, a named controller, or (no target_name) the PIE session's PlayerController. PIE-gated: clean error if no PIE session.
Returns: { applied: bool, target: string, control_rotation: [pitch, yaw, roll], pie_client_index: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaw | Yes | Required number. Control rotation yaw (degrees). | |
| roll | Yes | Required number. Control rotation roll (degrees). | |
| pitch | Yes | Required number. Control rotation pitch (degrees). | |
| target_name | No | Optional. Name/label of the possessed pawn (uses its controller) or a controller; default = the PIE session's PlayerController. | |
| pie_client_index | No | Optional int (default 0). |