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

◆ GetAttachmentByConfigTypeName()

EntityAI Entity::GetAttachmentByConfigTypeName ( string type)
inlineprotected

Get attached entity by config type name.

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

2076 {
2077 for ( int i = 0; i < GetInventory().AttachmentCount(); i++ )
2078 {
2079 EntityAI attachment = GetInventory().GetAttachmentFromIndex ( i );
2080 if ( attachment.IsKindOf ( type ) )
2081 return attachment;
2082 }
2083 return NULL;
2084 }
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.

Перекрестные ссылки EntityAI() и GetInventory().