"allow only 1 soldiertype/race" as described by the example is relatively easy to do
I don't have any particular feelings about the feature myself, feedback welcome
"allow only 1 particular soldiertype/race" is a bit different, but also doable
Awesome!
I wanted to give further details on the feature as someone asked a question on the discord servers, the question was:
"Interesting idea. Not one I can see myself using, but nothing wrong with it as an idea. Although, would that not prevent you from carrying an HWP in addition to the soldiers, as they're two different things?"
My answer was:
"One wouldn't go without the other in a sense, once you bring a HWP of type A you can only load soldiers of type A and vice versa.
Much like requiresBaseFunc except the "service" becomes available as soon as a unit type is loaded"
It then returns nothing if the craft is empty, thus allowing for loading a new unit type again