Home   Help Search Login Register  

Author Topic: Cowards, they are all cowards...  (Read 1735 times)

0 Members and 1 Guest are viewing this topic.

Desdichado

  • Guest
Cowards, they are all cowards...
« 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

Pope_Zog

  • Guest
Re:Cowards, they are all cowards...
« Reply #1 on: 23 Aug 2002, 13:06:19 »
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
« Last Edit: 23 Aug 2002, 13:07:39 by Pope Zog »

Desdichado

  • Guest
Re:Cowards, they are all cowards...
« Reply #2 on: 23 Aug 2002, 13:17:30 »
Thx for reply...

Quote
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

tai mai shu

  • Guest
Re:Cowards, they are all cowards...
« Reply #3 on: 23 Aug 2002, 22:02:21 »
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.