| 657 | } |
| 658 | |
| 659 | void AAlsxtCharacter::SetMovingTagLocal(bool bIsMoving) |
| 660 | { |
| 661 | if (!GetAbilitySystemComponent()) return; |
| 662 | const FGameplayTag MovingTag {AlsxtGASGameplayTags::State::TAG_State_MovementInput}; |
| 663 | // bIsMoving ? GetAbilitySystemComponent()->AddLooseGameplayTag(MovingTag) : GetAbilitySystemComponent()->RemoveLooseGameplayTag(MovingTag); |
| 664 | |
| 665 | if (bIsMoving) |
| 666 | { |
| 667 | if (!GetAbilitySystemComponent()->HasMatchingGameplayTag(MovingTag)) |
| 668 | { |
| 669 | // GetAbilitySystemComponent()->AddLooseGameplayTag(MovingTag); |
| 670 | GetAbilitySystemComponent()->SetLooseGameplayTagCount(MovingTag, 1); |
| 671 | } |
| 672 | } |
| 673 | else |
| 674 | { |
| 675 | // GetAbilitySystemComponent()->RemoveLooseGameplayTag(MovingTag, 1, EGameplayTagReplicationState::TagAndCountToAll); |
| 676 | GetAbilitySystemComponent()->SetLooseGameplayTagCount(MovingTag, 0); |
| 677 | if (GetAbilitySystemComponent()->HasMatchingGameplayTag(MovingTag)) |
| 678 | { |
| 679 | // GetAbilitySystemComponent()->RemoveLooseGameplayTag(MovingTag); |
| 680 | // GetAbilitySystemComponent()->RemoveLooseGameplayTag(MovingTag, 1, EGameplayTagReplicationState::TagAndCountToAll); |
| 681 | GetAbilitySystemComponent()->SetLooseGameplayTagCount(MovingTag, 0); |
| 682 | } |
| 683 | } |
| 684 | } |
| 685 | |
| 686 | void AAlsxtCharacter::Server_SetMovingTag_Implementation(bool bIsMoving) |
| 687 | { |
nothing calls this directly
no test coverage detected