OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started 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.
-
in the init case of the soldiers write this
grp1= group this
That will define the groups name that you´ll use to write the other code.
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
-
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-
-
You must write those commands in the init. see the image ( click on image for larger view )
Regards,
~Aldo
-
Thanks Aldo15! :)
-
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"
-
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 -------> Unit1
2. You should to put in the init of this one unit this:
{_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 grp=group this
I'm Sorry.... :P
-
Got it working this time, thanks!