Skip to content

MoveToAllyPositionAction ​

Inherits: CombatAction < Resource

Moves to a specific ally's position based on criteria

Properties ​

floatsearch_range20.0
AllyCriteriaally_criteriaAllyCriteria.NEAREST
floatoffset_distance2.0
boolshould_walkfalse

Enumerations ​

enum AllyCriteria ​

The options of ally criteria: nearest, farthest, lowest health, highest health.

  • NEAREST = 0
  • FARTHEST = 1
  • LOWEST_HEALTH = 2
  • HIGHEST_HEALTH = 3

Property descriptions ​

float search_range = 20.0 ​

How far to look for an ally.

AllyCriteria ally_criteria = AllyCriteria.NEAREST ​

Which ally to move to (the nearest, the weakest ...).

float offset_distance = 2.0 ​

How far from the ally to stop.

bool should_walk = false ​

True when the entity walks and does not run.