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

A unit can only have 1 working stockpile weapon #1817

Open
sprunk opened this issue Dec 13, 2024 · 1 comment
Open

A unit can only have 1 working stockpile weapon #1817

sprunk opened this issue Dec 13, 2024 · 1 comment

Comments

@sprunk
Copy link
Collaborator

sprunk commented Dec 13, 2024

  • one of the stockpile weapons will be assigned as "the" stockpile weapon on a unit.
  • Lua interfaces apply "to the unit", i.e. to that weapon, and you can't specify a different one.
  • native stockpile command will only apply to ammo for that weapon. This is probably fine if you can use Lua, but the command could have a weapon index parameter.
  • the other weapons are still technically stockpile weapons so can't fire due to being stuck at 0 ammo.
@ryanbennitt
Copy link

Yeah you'd have to have multiple stockpile buttons if multiple weapons needed different stockpiles. Interesting other weapons don't work, they don't even have the stockpile=true flag.

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