Sorry, my bad. The error was elsewhere. I also needed to specify the quality in owner_inventory.find_item_stack() further down the code.
As a result, this line works correctly:
local pickup_point = select_pickup_point {name = {name = "repair-pack", quality = "uncommon"}, position = self.position ...
Search found 2 matches
- Tue Apr 14, 2026 5:57 pm
- Forum: Modding help
- Topic: select_pickup_point with quality
- Replies: 1
- Views: 181
- Tue Apr 14, 2026 1:50 pm
- Forum: Modding help
- Topic: select_pickup_point with quality
- Replies: 1
- Views: 181
select_pickup_point with quality
Hi. Could you help me? I created a function using
local pickup_point = select_pickup_point {name = name, position = self.position, include_buffers = true}
where name is "repair-pack" (repair-tool), and it doesn't work with quality. I looked in the documentation and tried this:
local quality ...
local pickup_point = select_pickup_point {name = name, position = self.position, include_buffers = true}
where name is "repair-pack" (repair-tool), and it doesn't work with quality. I looked in the documentation and tried this:
local quality ...