OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SharkDog on 01 Apr 2003, 17:30:38

Title: Domove and allowfleeing?
Post by: SharkDog on 01 Apr 2003, 17:30:38
Hello, My fellow OFPers

Hi, i have 2 questions and I hope you can awnser them.

1: When i use the domove command it gives errors, and how can i lets a unit walk to a dead body with the domove command?

2: Whats the command for making the AI not to flee, and do i only have to put it in the squad leaders init field, and does it still work when he dies.

Thanks in advance.
Title: Re:Domove and allowfleeing?
Post by: Uberminch on 01 Apr 2003, 17:58:37
If you put the allowfleeing command in the officer's init field, of course he will lead his men away. But if he dies and yous till want them to flee, put it in all of their init's.
Title: Re:Domove and allowfleeing?
Post by: macguba on 01 Apr 2003, 18:03:55
1.    doMove applies to units.   Use move if  you want to move a group.      What errors do you get?

loon1 doMove getPos loon2

syntax not guaranteed.


2.   If you want the whole group never to flee write this in the leaders init field

"_x allowfleeing 0" forEach units group this

syntax not guaranteed.
Title: Re:Domove and allowfleeing?
Post by: Uberminch on 01 Apr 2003, 18:06:17
I believe the command for fleeing is

this allowfleeing 0

0 is maximum courage, 1 is always fleeing.
Title: Re:Domove and allowfleeing?
Post by: SharkDog on 01 Apr 2003, 18:09:35
All your help was appreciated, and worked.

Thanks all