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

◆ DropAllItems()

void ManBase::DropAllItems ( )
inlineprotected

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

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

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

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