DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DropAllItems()

void ManBase::DropAllItems ( )
inlineprotected

Drops all clothes/wearables this character is carrying on themselves.

См. определение в файле PlayerBase.c строка 6445

6446 {
6447 array<EntityAI> itemsArray = new array<EntityAI>;
6448 ItemBase item;
6449 GetInventory().EnumerateInventory(InventoryTraversalType.LEVELORDER, itemsArray);
6450 int count = itemsArray.Count();
6451
6452 for (int i = 0; i < itemsArray.Count(); i++)
6453 {
6454 Class.CastTo(item, itemsArray.Get(i));
6455
6456 if (item && !item.IsInherited(SurvivorBase))
6457 {
6458 ServerDropEntity(item);
6459 }
6460 }
6461 }
class GP5GasMask extends MaskBase ItemBase
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
Определения gameplay.c:6

Перекрестные ссылки Class::CastTo().