OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Desdichado on 23 Aug 2002, 11:34:31
-
Hi there...
As soon as half or more of an enemy patrol has been eliminated the rest starts to run off. This I do not want.
For a soldier I put in the init field: "this allowFleeing = false" right ? Or is it = 0 ?
But for a group, how does the command go then ? Do I need to predefine the enemy group, and can this be done in the description.ext file ?
Thx in advance...
Best regards
Jan Fredrik Lund
Norway
-
This is from Bohemia's online ComRef (http://www.flashpoint1985.com/docs/comrefnew/data/comref.html):
unit allowFleeing courage
Operand types:
unit: Object or Group
courage: Number
Type of returned value:
None
Description:
Set group courage. The less courage, the sooner will group start fleeing.
0 means maximum courage, 1 means always fleeing.
I don't think you can define anything relating to groups in the "description.ext" file. Instead you could put the following in the soldiers' init field:
EnemyPatrol1 = group this; EnemyPatrol1 allowFleeing 0
Pope Zog
-
Thx for reply...
EnemyPatrol1 = group this; EnemyPatrol1 allowFleeing 0
Should this be put in the leader of the group or in all soldiers init field ?
Best regards
Jan Fredrik Lund
Norway
-
anyones init field will work, as long as they are part of the group you want the command to affect. what it does is finds all the followers and commander in a squad, and forms an array.