Jump to content
Sign in to follow this  
avibird 1

Squad leader issues with mounting vehicles! WTF/HELP

Recommended Posts

This is pissing me off:mad: lol. I have been working on a mission that involves using the team switch function to be able to control multiple platoons in combat. All works great with the armor units and paratroops but I have a major issue with ground infantry units:mad:

When I take control of the squad leader and order the squad/squads to get in the transport trucks all is good. When I give each truck driver a waypoint to go all is good. When I order all Infantry units to disembark all is good. When I order a different fomation and combat redness all is good however, When I TEAM SWITCH out of the SQUAD LEADER to a different unit the squad leader always trys to mount the transport truck! WTF.

This only happens if the TEAM LEADER gets into the truck. If you move the squad out by foot or parajump this is not a issue and all is really good but I would like to use transport trucks during the mission.

This is the code I use

this setunitpos "DOWN"; this setGroupid ["US Army Infantry Platoon"]; this setFormation "FILE"; onTeamSwitch "selectPlayer (leader _from);IF (vehicle _from == _from) THEN {{_x doFollow leader _from} foreach units _from;unassignVehicle _from;};selectPlayer _to;";

and I tryed this as well.

this setunitpos "DOWN"; this setGroupid ["US_ARMY_Special_Force"]; this setFormation "FILE"; this setWaypointType "HOLD"; onTeamSwitch "selectPlayer (leader _from);IF (vehicle _from == _from) THEN {{_x doFollow leader _from} foreach units _from;unassignVehicle _from;};selectPlayer _to;";

Any help would be great to resolve this bug/issue/pain in my ass lol thanks AVIBIRD.

Share this post


Link to post
Share on other sites

Did you fix this, I could reproduce it but couldn't find a fix for it either.

Share this post


Link to post
Share on other sites

try using (units _from) orderGetIn false; after the unassignVehicle part.

Edited by Demonized

Share this post


Link to post
Share on other sites

That seem to have fixed it for me at least.

Thanks.

Share this post


Link to post
Share on other sites
try using (units _from) orderGetIn false; after the unassignVehicle part.

Hey Demonized works great however, I found a second fix but your way is easier:). If you have the high command function in the mission you can give the squad leader(the whole squad) a order to get in/get out which will make the squad leader not mount his vehicle again. You must give the squad a move waypoint and then right click on the waypoint to bring up more order options. This is a pain in the ass when you have multiple squads moving at the same time for combat. Thanks for the code:bounce3:

Share this post


Link to post
Share on other sites
This is pissing me off:mad: lol. I have been working on a mission that involves using the team switch function to be able to control multiple platoons in combat. All works great with the armor units and paratroops but I have a major issue with ground infantry units:mad:

When I take control of the squad leader and order the squad/squads to get in the transport trucks all is good. When I give each truck driver a waypoint to go all is good. When I order all Infantry units to disembark all is good. When I order a different fomation and combat redness all is good however, When I TEAM SWITCH out of the SQUAD LEADER to a different unit the squad leader always trys to mount the transport truck! WTF.

This only happens if the TEAM LEADER gets into the truck. If you move the squad out by foot or parajump this is not a issue and all is really good but I would like to use transport trucks during the mission.

This is the code I use

this setunitpos "DOWN"; this setGroupid ["US Army Infantry Platoon"]; this setFormation "FILE"; onTeamSwitch "selectPlayer (leader _from);IF (vehicle _from == _from) THEN {{_x doFollow leader _from} foreach units _from;unassignVehicle _from;};selectPlayer _to;";

and I tryed this as well.

this setunitpos "DOWN"; this setGroupid ["US_ARMY_Special_Force"]; this setFormation "FILE"; this setWaypointType "HOLD"; onTeamSwitch "selectPlayer (leader _from);IF (vehicle _from == _from) THEN {{_x doFollow leader _from} foreach units _from;unassignVehicle _from;};selectPlayer _to;";

Any help would be great to resolve this bug/issue/pain in my ass lol thanks AVIBIRD.

try using (units _from) orderGetIn false; after the unassignVehicle part.
Hey Demonized works great however, I found a second fix but your way is easier:). If you have the high command function in the mission you can give the squad leader(the whole squad) a order to get in/get out which will make the squad leader not mount his vehicle again. You must give the squad a move waypoint and then right click on the waypoint to bring up more order options. This is a pain in the ass when you have multiple squads moving at the same time for combat. Thanks for the code:bounce3:

After few hours of test playing with my mission this code (units _from) orderGetIn false; is coming up a little short. Yes it does not allow the team leader to mount back into his Vehicle when you team switch out but when you team swith to a different unit in your squad or a different squad All the AI will DISEMBARK out of the vechicles this is not a major issue with ground units but with air and armor units it's a game killer. Anymore have any other helpful tips to correct this bug in the game that I could try. AVIBIRD

Share this post


Link to post
Share on other sites

I can't seem to duplicate that problem in SP so I wonder if it's MP problem only.

Share this post


Link to post
Share on other sites
I can't seem to duplicate that problem in SP so I wonder if it's MP problem only.

Yes it is a MP bug/conflict but in the OFP/ARMA world most things can be solved if you know the right people to ask for help:) I found a way around it by using the high command. It's a little pain in the ass with multiple squads moving into combat at once but works. I don't really understand why it will work in SP but not MP this is over my head of understanding. I was trying to put a hold waypoint into the squad leader's init box or with a script/trigger so when you team switch out of the leader he would not mount the vehicle but can't get that to work.:confused:

Still hoping for some help on this. I love the high command function and team switch together. I have 300 playbale units on my mission it's like playing a gaint RTS but in first person.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×