3731 {
3732 if ( MemoryPointExists( "invView2" ) )
3733 {
3734 #ifdef PLATFORM_WINDOWS
3735 InventoryLocation il = new InventoryLocation();
3738 switch ( type )
3739 {
3741 {
3742 return 0;
3743 }
3745 {
3746 return 1;
3747 }
3749 {
3750 return 0;
3751 }
3753 {
3754 return 1;
3755 }
3757 {
3758 return 0;
3759 }
3760 default:
3761 {
3762 return 0;
3763 }
3764 }
3765 #endif
3766
3767 #ifdef PLATFORM_CONSOLE
3768 return 1;
3769 #endif
3770 }
3771 return 0;
3772 }
InventoryLocationType
types of Inventory Location
proto native GameInventory GetInventory()
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetType()
returns type of InventoryLocation