Page 1 of 1

Allow mods to access the tank's trash inventory

Posted: Sun Dec 22, 2024 5:13 pm
by smcpeak
TL;DR
Allow mods to access the tank's trash inventory by providing a proper inventory defines constant.
What?
Currently, there is no symbolic constant in defines.inventory for the tank's trash inventory to use with get_inventory. There is only car_trunk and car_ammo.

Experimentally, I found that spider_trash (4) works with the tank too, retrieving its trash inventory, but it's not clear whether that is guaranteed. If that is intentional, I suggest adding a sentence of documentation to spider_trunk clarifying that it works for the tank too. If not, I request a car_trash symbolic constant.
Why?
Mods often interact with vehicle inventory, and being able to do so for the tank's trash inventory is unexceptional.

Re: Allow mods to access the tank's trash inventory

Posted: Mon Dec 23, 2024 8:57 pm
by Koub
[Koub] Moved to Modding interface requests.

Re: Allow mods to access the tank's trash inventory

Posted: Mon Dec 30, 2024 8:25 pm
by Rseding91
Added for the next release.