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

◆ GetAttachmentByType()

EntityAI Entity::GetAttachmentByType ( typename type )
inlineprotected

Get attached entity by type.

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

2062 {
2063 for ( int i = 0; i < GetInventory().AttachmentCount(); i++ )
2064 {
2065 EntityAI attachment = GetInventory().GetAttachmentFromIndex( i );
2066 if ( attachment && attachment.IsInherited( type ) )
2067 return attachment;
2068 }
2069 return NULL;
2070 }
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().