Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function to remove units from a platoon #2103

Open
gunterlund opened this issue Feb 17, 2024 · 3 comments
Open

New function to remove units from a platoon #2103

gunterlund opened this issue Feb 17, 2024 · 3 comments
Assignees

Comments

@gunterlund
Copy link
Collaborator

We have a function in the Brigade that allows us to add groups to a platoon in a brigade . So for instance I can create a platoon,
SyrianGarrison=PLATOON:New("Syrian Garrison", 100, "Al Bab Garrison"). this example creates a garrison platoon with 100 groups in it.
I use AlBabBrigade:AddPlatoon(SyrianGarrison) to add the platoon to the AlBabBrigade.
I can add to this platoon using AlBabBrigade:AddAssetToPlatoon(SyrianPlatoon, 2). Now the platoon have 102 groups in it.

We need a way to remove groups from a platoon similar to adding.
So if I do AlBabBrigade:RemoveAssetFromPlatoon(SyrianPlatoon, 2), the Syrian Garrision will have 98 groups in it.

There is a function called BRIGADE:RemoveAssetFromPlatoon(Asset), but this appears to remove the entire platoon from the brigade. What Im suggesting is different.

@funkyfranky funkyfranky self-assigned this Mar 2, 2024
@gunterlund
Copy link
Collaborator Author

Hi @funkyfranky any thought on this?

funkyfranky added a commit that referenced this issue Jul 7, 2024
- Added method to reduce asset count for cohorts #2103
- Added tacview on legion level
@gunterlund
Copy link
Collaborator Author

gunterlund commented Jul 8, 2024

Hi @funkyfranky I saw what looked like an update come through for this. will this remove assets at the platoon/squadron level?

so something like Brigade:removeassetfromplatoon(Platoon1,3).. Remove 3 groups from Platoon 1 in the Brigade.

@funkyfranky
Copy link
Collaborator

You can use myplatoon:RemoveAssets(3) @gunterlund

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants