Add Input Action for ThrowThrowable
This commit is contained in:
parent
fe6eca55c5
commit
eea9ee49e6
|
@ -170,6 +170,11 @@ void APlayerCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputCom
|
||||||
Input->BindAction(AimDownSightsAction, ETriggerEvent::Completed, this,
|
Input->BindAction(AimDownSightsAction, ETriggerEvent::Completed, this,
|
||||||
&APlayerCharacter::EndAimDownSightsCallback);
|
&APlayerCharacter::EndAimDownSightsCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ThrowAction)
|
||||||
|
{
|
||||||
|
Input->BindAction(ThrowAction, ETriggerEvent::Started, this, &APlayerCharacter::ThrowThrowable);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,9 @@ public:
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||||
UInputAction* SprintAction;
|
UInputAction* SprintAction;
|
||||||
|
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||||
|
UInputAction* ThrowAction;
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||||
TSoftObjectPtr<UInputMappingContext> InputMappingContext;
|
TSoftObjectPtr<UInputMappingContext> InputMappingContext;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue