241 {
244 {
246 {
247 break;
248 }
250 {
253 float dir[4];
255 res = res + " pos=(" + pos[0] + ", " + pos[1] + ", " + pos[2] + ")";
256 res = res + " dir=(" + dir[0] + ", " + dir[1] + ", " + dir[2] + ", " + dir[3] + ")";
257 break;
258 }
260 {
263 res = res +
" slot=" +
GetSlot();
264 break;
265 }
267 {
271 break;
272 }
274 {
277 break;
278 }
280 {
284 break;
285 }
287 {
290 res = res +
" idx=" +
GetIdx();
291 break;
292 }
293
295 {
298 break;
299 }
300 default:
301 {
302 res = res + "??";
303 break;
304 }
305 }
306 res = res + " }";
307 return res;
308 }
InventoryLocationType
types of Inventory Location
proto native EntityAI GetParent()
returns parent of current inventory location
proto native vector GetPos()
returns position of item in world if type is Ground
proto native void GetDir(out float dir[4])
returns direction of item in world if type is Ground
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetCol()
returns column of cargo if current type is Cargo / ProxyCargo
proto native int GetRow()
returns row of cargo if current type is Cargo / ProxyCargo
proto native int GetType()
returns type of InventoryLocation
proto native int GetIdx()
returns index of cargo if current type is Cargo / ProxyCargo
proto native bool GetFlip()
returns flip status of cargo
proto native EntityAI GetItem()
returns item of current inventory location