53 {
54 if ( MemoryPointExists( "invView2" ) )
55 {
56 InventoryLocation il = new InventoryLocation;
57 GetInventory().GetCurrentInventoryLocation( il );
59 switch ( type )
60 {
62 {
63 return 0;
64 }
66 {
67 return 1;
68 }
70 {
71 return 0;
72 }
74 {
75
76 if ( IsDeployed() )
77 return 1;
78
79
80 return 0;
81 }
83 {
84 return 0;
85 }
86 default:
87 {
88 if ( IsDeployed() )
89 return 1;
90
91
92 return 0;
93 }
94 }
95 }
96 return 0;
97 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation