scripts/3_Game/Entities/EntityAI.c
/**
	\brief Get attached entity by config type name
	*/
\brief Get attached entity by config type name
\ brief Get attached entity by config type name
EntityAI GetAttachmentByConfigTypeName(string type)
	{
		for ( int i = 0; i < GetInventory().AttachmentCount(); i++ )
		{
			EntityAI attachment = GetInventory().GetAttachmentFromIndex ( i );
			if ( attachment.IsKindOf ( type ) )
				return attachment;
			}
		return NULL;
	}
EntityAI GetAttachmentByConfigTypeName ( string type ) { for ( int i = 0 ; i < GetInventory ( ) . AttachmentCount ( ) ; i ++ ) { EntityAI attachment = GetInventory ( ) . GetAttachmentFromIndex ( i ) ; if ( attachment . IsKindOf ( type ) ) return attachment ; } return NULL ; }
\brief Get attached entity by config type name
\ brief Get attached entity by config type name