OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Grandi on 14 Feb 2011, 12:18:39

Title: Never falling back
Post by: Grandi on 14 Feb 2011, 12:18:39
I'd like to know how can I make my group never falling back even if we lost most of our men. Is it possible? It's annoying when the officer decides to fall back and stay laying next to car a kilometer away from the mission area.
Title: Re: Never falling back
Post by: OFP_f3d3 on 14 Feb 2011, 18:25:13
in the init case of the soldiers write this

Code: [Select]
grp1= group this
That will define the groups name that you´ll use to write the other code.

Code: [Select]
grp1 AllowFleeing 0
This code shows the courage or cowardise of a group. Note that 1 means the highest cowardise level :weeping: and 0 means brave. :cool2:

I think this should work, if it doesn´t, don´t hesitate in asking again and also if you want you can post your mission in the beta-test thread. We like receiving projects from others to test them. ;)

Regards

OFP_f3d3
Title: Re: Never falling back
Post by: Grandi on 15 Feb 2011, 13:55:51
Do I write both of these inside the description.ext file or just the second one?


#EDIT: No need to quote the entire previous post you're replying to...   h-
Title: Re: Never falling back
Post by: Aldo15 on 16 Feb 2011, 01:33:05
You must write those commands in the init. see the image ( click on image for larger view )

Regards,
~Aldo
Title: Re: Never falling back
Post by: Grandi on 16 Feb 2011, 11:54:13
Thanks Aldo15! :)
Title: Re: Never falling back
Post by: Grandi on 20 Feb 2011, 19:00:01
You must write those commands in the init. see the image ( click on image for larger view )

Regards,
~Aldo

I tried this one but it only returns me an error: "'grp allowFleeing 0|#|': Error allowfleeing: Type Number, expected object,group"
Title: Re: Never falling back
Post by: Aldo15 on 20 Feb 2011, 19:15:11

I tried this one but it only returns me an error: "'grp allowFleeing 0|#|': Error allowfleeing: Type Number, expected object,group"

Are You Sure? It works for me!

Well, Try this:

1.Namig the group leader ------->
Quote
Unit1
2. You should to put in the init of this one unit this:
Code: [Select]
{_x allowFleeing 0} foreach units Unit1
If this command doesn't work, Feel free ask me

Regards,
Aldo

EDIT: Umm, Now I know because this command doesn't work.... Do You put in th init "grp=1"? if that's true, You must fix it!

You must to write
Code: [Select]
grp=group this
I'm Sorry....  :P
Title: Re: Never falling back
Post by: Grandi on 21 Feb 2011, 22:43:50
Got it working this time, thanks!