What makes a "flee" command complete?

Place to get help with not working mods / modding interface.
PFQNiet
Filter Inserter
Filter Inserter
Posts: 290
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

What makes a "flee" command complete?

Post by PFQNiet »

The "flee" command can be given to units to make them run away from something. But there doesn't appear to be any way to specify how far away they should try to get, or how long they should flee for.

Is it possible to set either of these? Or are these hard-coded (and if so to what values)?

My current alternative is to use "go_to_location" instead, with a target calculated based on the unit's position and the position of the thing the unit is fleeing from, but that seems hacky.
Post Reply

Return to “Modding help”