OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: GeneralCoder on 08 Apr 2003, 20:09:55
-
If it would I could make script that enemy surrenders instead of running o way. What do you think about that?
-
Sure. I've taken these from the official command reference 1.85. If you need any further explination on them, just ask m'kay ;)
With this one you set how brave the soldier / group is
unit allowFleeing courage
Operand types:
unit: Object or Group
courage: Number
Type of returned value:
Nothing
Description:
Set group courage. The less courage, the sooner will group start fleeing. 0 means maximum courage, 1 means always fleeing.
Example:
soldierOne allowFleeing 0
With this one you detect if the soldier / group is fleeing
fleeing unit
Operand types:
unit: Object
Type of returned value:
Boolean
Description:
Check if unit is fleeing. Dead or empty unit returns false.
Example:
fleeing eastReconGroup
-
Sure. I've taken these from the official command reference 1.85. If you need any further explination on them, just ask m'kay ;)
With this one you set how brave the soldier / group is
unit allowFleeing courage
Operand types:
unit: Object or Group
courage: Number
Type of returned value:
Nothing
Description:
Set group courage. The less courage, the sooner will group start fleeing. 0 means maximum courage, 1 means always fleeing.
Example:
soldierOne allowFleeing 0
With this one you detect if the soldier / group is fleeing
fleeing unit
Operand types:
unit: Object
Type of returned value:
Boolean
Description:
Check if unit is fleeing. Dead or empty unit returns false.
Example:
fleeing eastReconGroup
Nice ;D Thank you!