RealDocs

UCharacterMovementComponent::SetAvoidanceGroup

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

Description

Sets which RVO avoidance group this character belongs to, using a raw bitmask integer.

Caveats & Gotchas

  • Deprecated in favor of SetAvoidanceGroupMask(const FNavAvoidanceMask&); the int32 overload is scheduled for removal in a future engine version.
  • Only takes effect if RVO avoidance is registered (GetAvoidanceManager() returns non-null) — otherwise the assignment has no visible effect until avoidance is enabled.

Signature

void SetAvoidanceGroup(int32 GroupFlags)

Parameters

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

Return Type

void

Example

Legacy group assignment (prefer the mask overload) C++
GetCharacterMovement()->SetAvoidanceGroup(1 << 2);

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.