RealDocs

UCharacterMovementComponent::SetGroupsToIgnoreMask

function Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Sets the mask of avoidance groups this character should ignore during RVO avoidance, taking priority over GroupsToAvoid for any overlapping groups.

Caveats & Gotchas

  • Takes priority over GroupsToAvoid — overlapping groups are ignored, not avoided.
  • Requires avoidance to be enabled via SetAvoidanceEnabled(true) to have any observable effect.

Signature

void SetGroupsToIgnoreMask(const FNavAvoidanceMask& GroupMask)

Parameters

Name Type Description Default
GroupMask const FNavAvoidanceMask& The mask of avoidance groups this character should ignore.

Return Type

void

Example

Ignore a specific group of agents entirely C++
GetCharacterMovement()->SetGroupsToIgnoreMask(FNavAvoidanceMask(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.