Bugfix TimeToInit Combat to 0.1f
This commit is contained in:
parent
2512a4950e
commit
87e0bb06de
@ -38,11 +38,11 @@ void UHoldToInitCombat::TickComponent(float DeltaTime, ELevelTick TickType, FAct
|
||||
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
|
||||
|
||||
//If the player is holding down the right mouse button for 3 seconds, then the player will enter combat mode
|
||||
if (bRightClickDown && RightClickDownTime < 3.0f)
|
||||
if (bRightClickDown && RightClickDownTime < 0.1f)
|
||||
{
|
||||
RightClickDownTime += DeltaTime;
|
||||
}
|
||||
else if (bRightClickDown && RightClickDownTime >= 3.0f)
|
||||
else if (bRightClickDown && RightClickDownTime >= 0.1f)
|
||||
{
|
||||
//Enter Combat Mode
|
||||
Cast<ATurnBaseCombatV2>(GetWorld()->GetGameState())->StartCombat(TargetEnemy);
|
||||
|
Loading…
Reference in New Issue
Block a user