3688 {
3689 if ( MemoryPointExists( "invView2" ) )
3690 {
3691 #ifdef PLATFORM_WINDOWS
3692 InventoryLocation il = new InventoryLocation();
3695 switch ( type )
3696 {
3698 {
3699 return 0;
3700 }
3702 {
3703 return 1;
3704 }
3706 {
3707 return 0;
3708 }
3710 {
3711 return 1;
3712 }
3714 {
3715 return 0;
3716 }
3717 default:
3718 {
3719 return 0;
3720 }
3721 }
3722 #endif
3723
3724 #ifdef PLATFORM_CONSOLE
3725 return 1;
3726 #endif
3727 }
3728 return 0;
3729 }
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