OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gooner861 on 11 Jul 2003, 13:37:10

Title: STOP running away!
Post 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!
Title: Re:STOP running away!
Post by: Artak on 11 Jul 2003, 14:04:19
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
Title: Re:STOP running away!
Post by: LCD on 11 Jul 2003, 14:05:04
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 ;)
Title: Re:STOP running away!
Post by: Gooner861 on 11 Jul 2003, 16:28:29
Cheers.   :)
Title: Re:STOP running away!
Post by: Tomb on 11 Jul 2003, 19:47:44
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