426 {
427 if (MemoryPointExists("invView2"))
428 {
429 InventoryLocation il = new InventoryLocation();
430 GetInventory().GetCurrentInventoryLocation(il);
432
434 {
435 switch (type)
436 {
438 return 1;
439 default:
440 return 0;
441 }
442 }
443 else
444 {
445 switch (type)
446 {
449 return 1;
450 default:
451 return 0;
452 }
453 }
454 }
455
456 return 0;
457 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation