Home   Help Search Login Register  

Author Topic: Follow command bug?  (Read 1713 times)

0 Members and 3 Guests are viewing this topic.

Offline pertplus

  • Members
  • *
Follow command bug?
« 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


Offline Aldo15

  • OFP-addict
  • Former Staff
  • ****
    • My OFP missions
Re: Follow command bug?
« Reply #1 on: 14 Jan 2011, 17:43:15 »
Hi pertplus...

Firstly this is not the appropiate to put these issues. Yuo should post them Here

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 or this other tochoose the leader

Here's a Surrender script.

Hope that help.

-Aldo

My OFP stuff
FMF Project by Aldo15. Coming soon.
If in the high school or university, Teachers add a new subject about how to make scripts, missions, for ofp. I'd be number one of my classroom

Offline pertplus

  • Members
  • *
Re: Follow command bug?
« Reply #2 on: 15 Jan 2011, 00:55:27 »
Ah of course, Those stupid ranks.

Gracias

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: Follow command bug?
« Reply #3 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.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: Follow command bug?
« Reply #4 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

Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: Follow command bug?
« Reply #5 on: 23 Jan 2011, 22:54:19 »
Doh! Overlooked that. Thanks for the follow up Haroon. I appreciate the backup.