RealDocs

UCharacterMovementComponent::SetGroupsToIgnore

function Engine Blueprint Deprecated Since 4.0
Deprecated: Please use SetGroupsToIgnoreMask function instead.
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Sets the mask of avoidance groups this character should ignore, using a raw bitmask integer, overriding GroupsToAvoid for matching groups.

Caveats & Gotchas

  • Deprecated in favor of SetGroupsToIgnoreMask(const FNavAvoidanceMask&); the int32 overload is scheduled for removal.
  • Higher priority than GroupsToAvoid — groups listed here are never avoided even if they're also listed in GroupsToAvoid.

Signature

void SetGroupsToIgnore(int32 GroupFlags)

Parameters

Name Type Description Default
GroupFlags int32 Raw bitmask of the avoidance group(s) this character should ignore.

Return Type

void

Example

Legacy group-to-ignore assignment (prefer the mask overload) C++
GetCharacterMovement()->SetGroupsToIgnore(1 << 3);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.