OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 11 Jul 2003, 13:37:10
-
How can u make the enemy stop running away when they r attacked and make them stay and fight, it is really annoying!
-
groupname allowfleeing 0
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
After that they'll fight like true Finnish soldiers :D
-
unitname allowfleeing 0
4 1 unit
"_X allowfleeing 0" foreach units group unitname
4 da whole group ;)
LCD OUT
[edit] im musta getin old :o :-X but i gave dat whole group thingy ;)
-
Cheers. :)
-
allowdrinking is almost beaten by simply sliding the "skill" bar all the way to the right when creating a unit. Only bug is that top-10 troopers tend to be master shooters as well (I almost said superman x-ray shooters) ::) ;D
My enemies never flees if their courage bar is a bit right of the center of that line... bar ....
:hmm: *bar* ??? :D
Hold on, m8 - gotta get offline a few hours! 8) ;D ;D