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

◆ DropAllItems()

void ManBase::DropAllItems ( )
inlineprotected

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

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

7001 {
7002 array<EntityAI> itemsArray = new array<EntityAI>;
7003 ItemBase item;
7004 GetInventory().EnumerateInventory(InventoryTraversalType.LEVELORDER, itemsArray);
7005 int count = itemsArray.Count();
7006
7007 for (int i = 0; i < count; ++i)
7008 {
7009 Class.CastTo(item, itemsArray.Get(i));
7010
7011 if (item && !item.IsInherited(SurvivorBase))
7012 {
7013 ServerDropEntity(item);
7014 }
7015 }
7016 }
class GP5GasMask extends MaskBase ItemBase
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
Определения gameplay.c:6

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