Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
Sets the value of the haptics for the specified hand directly, using frequency and amplitude. NOTE: If a curve is already playing for this hand, it will be cancelled in favour of the specified values.
| Name | SetHapticsByValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
UFUNCTION (BlueprintCallable, Category="Game|Feedback")
void SetHapticsByValue
(
const float Frequency,
const float Amplitude,
EControllerHand Hand
)
Parameters
| Name | Remarks |
|---|---|
| Frequency | The normalized frequency [0.0, 1.0] to play through the haptics system |
| Amplitude | The normalized amplitude [0.0, 1.0] to set the haptic feedback to |
| Hand | Which hand to play the effect on |