Want to create a script that restricts custom units based on if faction is player and I think this should work.
Is there a command for unit_group_for_faction?Code:scripting.game_interface:add_restricted_unit_record("unit_name") local ply_faction = CampaignUI.PlayerFactionId() if conditions.FactionIsHuman(ply_faction, context) then scripting.game_interface:remove_restricted_unit_record_for_faction("unit_name", ply_faction)