Not a member yet?
Register for free!
Type of returned value
Check if unit is fleeing.
Dead or empty unit returns false.
? (fleeing recon_unit) : goto "firingsquad"
Rellikki - 20 April 2010
Fleeing units will fall back into their initial position, wait for everyone to regroup and then continue into their waypoints again.
Thus 'fleeing' only works properly for units who have moved from their initial position - units cannot be made to flee if they haven't been assigned any instructions to move and have only stood still in their initial position for the whole mission duration.
Units' courage until they start fleeing is affected by the injured and death units they have. The
command works as a multiplier for this.
A couple of examples:
- Let's imagine we have a group of 12 men with 'allowFleeing' value of 0.5 - this means that the group must have less than 6 men alive (12 * 0.5 = 6) for it to start fleeing
- A group of 12 men with 'allowFleeing' value of 0.8 means that the group must have less than 10 men alive (12 * 0.8 = 9.6 (~ 10)) for it to start fleeing.
So in a nutshell: The maximum number of units the group must have alive until out of courage and start fleeing can be calculated by multiplying the number of units by their 'allowFleeing' value.
Injured units are also a factor as already mentioned, but it's a little harder to determine - units who've lost their legs (
) seem to add up to the probability of fleeing. Less serious injuries are a smaller factor.
Default 'allowFleeing' value is 0.5
Units' skill and rank don't have any effect on the their courage at all. Nor does the enemies they're facing.
(Tests performed in OFP: Resistance v.1.96)
Search OFPEC COMREF
- Select Game -
- Select Group -
firing from vehicles
advanced flight model
Top of page
Submit a Story
Subscribe to RSS
OFPEC The Editing Center
© 2001 - 2021
Problems with the site?