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

◆ DropAllItems()

void ManBase::DropAllItems ( )
inlineprotected

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

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

6680 {
6681 array<EntityAI> itemsArray = new array<EntityAI>;
6682 ItemBase item;
6683 GetInventory().EnumerateInventory(InventoryTraversalType.LEVELORDER, itemsArray);
6684 int count = itemsArray.Count();
6685
6686 for (int i = 0; i < count; ++i)
6687 {
6688 Class.CastTo(item, itemsArray.Get(i));
6689
6690 if (item && !item.IsInherited(SurvivorBase))
6691 {
6692 ServerDropEntity(item);
6693 }
6694 }
6695 }
class GP5GasMask extends MaskBase ItemBase
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
Определения gameplay.c:6

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