sfall-team / sfall

sfall - Engine modifications for Fallout 2
https://sfall-team.github.io/sfall/
GNU General Public License v3.0
342 stars 40 forks source link

No way to get object count from script (inventory) #463

Closed phobos2077 closed 1 year ago

phobos2077 commented 1 year ago

The only way to get the number of item in inventory is vanilla obj_is_carrying_obj_pid but it sums object counts from all stacks. This doesn't provide full information because different stacks of item of the same pid can have different properties (namely ammo type and ammo amount).

phobos2077 commented 1 year ago

This is a mistake, such opcode already exists: obj_is_carrying_obj