3683 {
3684 if ( MemoryPointExists( "invView2" ) )
3685 {
3686 #ifdef PLATFORM_WINDOWS
3687 InventoryLocation il = new InventoryLocation();
3690 switch ( type )
3691 {
3693 {
3694 return 0;
3695 }
3697 {
3698 return 1;
3699 }
3701 {
3702 return 0;
3703 }
3705 {
3706 return 1;
3707 }
3709 {
3710 return 0;
3711 }
3712 default:
3713 {
3714 return 0;
3715 }
3716 }
3717 #endif
3718
3719 #ifdef PLATFORM_CONSOLE
3720 return 1;
3721 #endif
3722 }
3723 return 0;
3724 }
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