[Solved] How to insert an ammo to specific slot?
Posted: Thu Mar 07, 2019 9:13 pm
How to insert an ammo to specific slot?
For example, I want something like if I put the submachine gun at gun slot 2, a stack of piercing bullets will be inserted to ammo slot 2. How can I do that?
Using LuaInventory::insert() does not work as desired, because it will always try to insert to slot 1 first.
For example, I want something like if I put the submachine gun at gun slot 2, a stack of piercing bullets will be inserted to ammo slot 2. How can I do that?
Using LuaInventory::insert() does not work as desired, because it will always try to insert to slot 1 first.