OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pertplus on 14 Jan 2011, 05:01:45

Title: Follow command bug?
Post by: pertplus on 14 Jan 2011, 05:01:45
Hello all,
I have this map where you have to capture a drug boss by assaulting his convoy, so I have a trigger set so when all of his bodyguards die he surrenders and then joins your team so u can take him to the helicopter pickup. Problem is, when playing multiplayer if the team leader dies, the captive assumes command!! This I believe is because when he joins the team it goes "3, FOLLOW 1", so somehow if one dies 3 takes precedent over 2?

The command im using is ..

[boss] join bop1;

bop1 being name of team leader.

Is there a way to make him join a group instead of a player, so he wont assume command?

Making him join player 2 doesnt help either because then if 2 dies he assumes command over 1.

Any help appreciated.

Thanks

Title: Re: Follow command bug?
Post by: Aldo15 on 14 Jan 2011, 17:43:15
Hi pertplus...

Firstly this is not the appropiate to put these issues. Yuo should post them Here (http://www.ofpec.com/forum/index.php?board=6.0)

I don't know if this would be correct. but tri it anyway

-You could assign the captive or the booss or whatever a low ranfe, for example private.
-Another oiption wolud be to use this command (http://www.ofpec.com/COMREF/index.php?action=details&id=193&game=All) or this other (http://www.ofpec.com/COMREF/index.php?action=details&id=194&game=All) tochoose the leader

Here's (http://www.ofpec.com/ed_depot/index.php?action=details&id=523&game=OFP) a Surrender script.

Hope that help.

-Aldo

Title: Re: Follow command bug?
Post by: pertplus on 15 Jan 2011, 00:55:27
Ah of course, Those stupid ranks.

Gracias
Title: Re: Follow command bug?
Post by: savedbygrace on 23 Jan 2011, 08:40:11
To make a unit or units to join a group, assign a group name to a group first, by inserting the code below into the init field of a groups leader.
Code: [Select]
alpha = group this
Join a unit to that group at anytime by using the code below in a trigger or script.
Code: [Select]
unitname join alpha
Rank certainly has an effect.
But if the bad guy is a private and the lesser members of a group are privates, authority will pass to whichever unit was placed in the editor first. To ensure the bad guy follows even the least of the subordinates in the group, place him in the editor after you've placed the group members.
Title: Re: Follow command bug?
Post by: haroon1992 on 23 Jan 2011, 09:13:15
Additionally,

unitName join alpha

won't work.
But

[unitName] join alpha

is the correct one.
So you can make several unit join a group from a single line of code, like this :

[unit1,unit2,unit3] join alpha

Title: Re: Follow command bug?
Post by: savedbygrace on 23 Jan 2011, 22:54:19
Doh! Overlooked that. Thanks for the follow up Haroon. I appreciate the backup.