Editors Depot - Mission Editing and Scripting > OFP - Editing/Scripting Multiplayer

Cowards, they are all cowards...

(1/1)

Desdichado:
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

Pope_Zog:
This is from Bohemia's online ComRef:

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

Desdichado:
Thx for reply...


--- Quote ---EnemyPatrol1 = group this; EnemyPatrol1 allowFleeing 0

--- End quote ---

Should this be put in the leader of the group or in all soldiers init field ?


Best regards
Jan Fredrik Lund
Norway

tai mai shu:
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.

Navigation

[0] Message Index

Go to full version