Get attached entity by type.
2102 {
2105 for ( int i = 0; i < nAttachment; ++i )
2106 {
2108 if ( attachment && attachment.IsInherited( type ) )
2109 return attachment;
2110 }
2111 return NULL;
2112 }
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.