OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Fiendish on 03 Jan 2003, 02:32:45

Title: AI Don't run away?
Post by: Fiendish on 03 Jan 2003, 02:32:45
What do I have to do to stop the enemy from escaping every time that I attack?
I kill most of them, but there's always one who ran away.
I am confused. ???

(Please excuse my bad english)
Title: Re:AI Don't run away?
Post by: Black_Feather on 03 Jan 2003, 02:38:10
you need to use this in the init field

this allowfleeing 0;

in the units init fields, use this for a group

"_x allowfleeing 0" foreach units this;
Title: Re:AI Don't run away?
Post by: Messiah on 03 Jan 2003, 02:43:48
type this i the 'init' field of the leader of the group

allowfleeing 0
Title: Re:AI Don't run away?
Post by: Fiendish on 03 Jan 2003, 03:17:06
Thank you so much! :D