Skip to content

RetreatAction ​

Inherits: CombatAction < Resource

RetreatAction moves the entity away from their target by a specified distance. Useful for tactical repositioning after attacks or when health is low.

Properties ​

floatretreat_distance8.0
boolshould_walkfalse

Property descriptions ​

float retreat_distance = 8.0 ​

Distance to retreat (meters)

bool should_walk = false ​

Whether to walk (true) or run (false) while retreating