438 {
439 InventoryLocation loc = new InventoryLocation();
440
441 bool isPresent = GetInventory().GetCurrentInventoryLocation( loc );
442
443 if ( !isPresent || loc.
GetSlot() == -1 )
444 return false;
445
447
449 return true;
450
451 return false;
452 }
PlayerSpawnPreset slotName
proto native int GetSlot()
returns slot id if current type is Attachment