add entity somewhere in inventory
All available inventory locations (hands, cargo, attachments, proxycargo, ...) are traversed recursively from root to leafs.
@NOTE: AddEntityToInventory does not perform the checks the CanAddEntityToInventory does (script conditions for example). if not sure, always call CanAddEntityToInventory before AddEntityToInventory.
[in] | item | item to be placed in inventory |
См. определение в файле Inventory.c строка 924
Перекрестные ссылки FindFreeLocationFor() и LocationAddEntity().