MCPcopy Create free account
hub / github.com/Voidware-Prohibited/ALSXT / SetMovingTagLocal

Method SetMovingTagLocal

Source/ALSXT/Private/AlsxtCharacter.cpp:659–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659void 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
686void AAlsxtCharacter::Server_SetMovingTag_Implementation(bool bIsMoving)
687{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected