3770 {
3771 if ( MemoryPointExists( "invView2" ) )
3772 {
3773 #ifdef PLATFORM_WINDOWS
3774 InventoryLocation il = new InventoryLocation();
3777 switch ( type )
3778 {
3780 {
3781 return 0;
3782 }
3784 {
3785 return 1;
3786 }
3788 {
3789 return 0;
3790 }
3792 {
3793 return 1;
3794 }
3796 {
3797 return 0;
3798 }
3799 default:
3800 {
3801 return 0;
3802 }
3803 }
3804 #endif
3805
3806 #ifdef PLATFORM_CONSOLE
3807 return 1;
3808 #endif
3809 }
3810 return 0;
3811 }
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